plain-carpenter-67621
08/24/2022, 4:13 PMplain-carpenter-67621
08/24/2022, 4:14 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?glamorous-carpet-83516
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)
plain-carpenter-67621
08/24/2022, 4:25 PMglamorous-carpet-83516
08/24/2022, 4:28 PMget_command
in your custom plugin.glamorous-carpet-83516
08/24/2022, 4:28 PM@task
plain-carpenter-67621
08/24/2022, 4:31 PMglamorous-carpet-83516
08/24/2022, 4:34 PMplain-carpenter-67621
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.plain-carpenter-67621
08/24/2022, 4:46 PMSIGTERM
or a SIGINT
in my code. how can i attach a shutdown hook that is run when the workflow is terminatedhigh-park-82026
docker 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..freezing-airport-6809
thankful-dress-89577
08/24/2022, 6:38 PMplain-carpenter-67621
08/24/2022, 6:56 PMSIGTERM
signal is sent to the the pyflyte_execute
and its not forwarded to the python process.plain-carpenter-67621
08/24/2022, 6:57 PMhigh-park-82026
ps
or whatever command you ran?plain-carpenter-67621
08/24/2022, 6:59 PMfreezing-airport-6809
freezing-airport-6809
thankful-dress-89577
08/25/2022, 1:29 PM