Hi Flyte team!
I'm traying to use the
papermill plugin on a Kubernetes cluster that uses Istio. For that, I've also installed the pod plugin (to deal with the sidecar issue). For regular python tasks, the _task_type_ changes to
sidecar
task and the pod can be terminated as expected using the pod plugin. However, when running a workflow with a notebook task for papermill, the _task_type_ changes to
nb-sidecar
. After that, the pod for this task can not be terminated and I don't know why. It seems like the same issue when we launch a workflow without the proper settings for pod plugin.
A code snipet for the task:
def generate_por_spec_for_task():
primary_container = V1Container(name="primary")
pod_spec = V1PodSpec(containers=[primary_container])
return pod_spec
nb = NotebookTask(
name="simple-nb",
task_config=Pod(pod_spec=generate_por_spec_for_task(), primary_container_name="primary"),
notebook_path=os.path.join(
pathlib.Path(file).parent.absolute(), "nb-simple.ipynb"
),
inputs=kwtypes(v=float),
outputs=kwtypes(square=float),
)
A log message in flytepropeller pod is the following:
{"json":{"exec_id":"ahkm5jd76h8l2gn46zt6","node":"n1","ns":"flyteexamples-development","res_ver":"209788243","routine":"worker-2","tasktype":"nb-sidecar","wf":"flyteexamples:development:flyte.workflows.simple.nb_to_python_wf"},"level":"warning","msg":"No plugin found for Handler-type [nb-sidecar], defaulting to [container]","ts":"2022-edited"}
Does anyone has insights about what could possibly going on?