https://flyte.org logo
#ask-the-community
Title
# ask-the-community
g

Gopal Vashishtha

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.
k

Ketan (kumare3)

10/19/2023, 3:22 AM
What is the usecase
k

Ketan (kumare3)

10/19/2023, 3:22 AM
If it’s cleanup, I think you should use agent
g

Gopal Vashishtha

10/19/2023, 3:23 AM
what is agent?
k

Ketan (kumare3)

10/19/2023, 6:05 AM
Ya happy to discuss
Btw we have been meaning to add a signal handler to execute
2 Views