Nada Saiyed
08/24/2022, 4:13 PMSIGTERM
handler, but that doesn’t get called.
In fact, i see this error msg in properller’s log
No plugin found for Handler-type...
is there a specific way these handlers need to be defined?Kevin Su
08/24/2022, 4:23 PMtasks:
task-plugins:
enabled-plugins:
- container
- sidecar
- k8s-array
default-for-task-types:
container: container
sidecar: sidecar
container_array: k8s-array
<task_type>: <your_handler> (by default, use container)
Nada Saiyed
08/24/2022, 4:25 PMKevin Su
08/24/2022, 4:28 PMget_command
in your custom plugin.@task
Nada Saiyed
08/24/2022, 4:31 PMKevin Su
08/24/2022, 4:34 PMNada Saiyed
08/24/2022, 4:40 PMSIGTERM
is sent to the pod running that task (lmk if thats not the case?) and i am trying to define a shutdown hook which will run some cleanup code.SIGTERM
or a SIGINT
in my code. how can i attach a shutdown hook that is run when the workflow is terminatedHaytham Abuelfutuh
08/24/2022, 5:24 PMdocker run
with the same command that you can copy from the flyte Pod spec to try things locally…
I would check the running processes in the container to see what’s process 1… etc. is it the shell or is it the python process..Ketan (kumare3)
08/24/2022, 6:01 PMAndrew Achkar
08/24/2022, 6:38 PMNada Saiyed
08/24/2022, 6:56 PMSIGTERM
signal is sent to the the pyflyte_execute
and its not forwarded to the python process.Haytham Abuelfutuh
08/24/2022, 6:57 PMps
or whatever command you ran?Nada Saiyed
08/24/2022, 6:59 PMKetan (kumare3)
08/25/2022, 5:51 AMAndrew Achkar
08/25/2022, 1:29 PM