Join Slack
Powered by
Does anyone happen to know if there's a way to exe...
# flyte-support
c
calm-zoo-68637
10/19/2023, 3:18 AM
Does anyone happen to know if there's a way to execute a handler inside a task when someone clicks "Terminate" in the Flyte console? Tried adding SIGTERM handling to one of my python scripts to catch this signal but that doesn't seem to work.
f
freezing-airport-6809
10/19/2023, 3:22 AM
What is the usecase
c
calm-zoo-68637
10/19/2023, 3:22 AM
similar to this:
https://discuss.flyte.org/t/8018171/hello-is-there-a-way-to-handle-workflow-termination-from-ui-
f
freezing-airport-6809
10/19/2023, 3:22 AM
If it’s cleanup, I think you should use agent
c
calm-zoo-68637
10/19/2023, 3:23 AM
what is agent?
calm-zoo-68637
10/19/2023, 4:44 AM
I see so your'e saying I could use the delete method here:
https://docs.flyte.org/projects/cookbook/en/stable/auto_examples/development_lifecycle/agent_service.html
f
freezing-airport-6809
10/19/2023, 6:05 AM
Ya happy to discuss
freezing-airport-6809
10/19/2023, 6:06 AM
Btw we have been meaning to add a signal handler to execute
7
Views
Open in Slack
Previous
Next