Channels
datahub-flyte
scipy-2023-workshop
flyte-school
agent-support-memverge
flyte-build
flyte-users-berlin
scipy-2023-sprint
auth
flyte-bazel
large-language-models
contribute
bioinformatics-computational-biology
great-content
in-flyte-conversations
flyte-on-gcp
show-and-tell
shameless-promotion
linkedin-flyte
random
deployment
hacktoberfest-2023
flyte-github
feature-discussions
linen-test
flytelab
flytekit-java
integrations
ray-on-flyte
conference-talks
release
flyte-ui-ux
workflow-building-ui-proj
writing-w-sfloris
jobs
hacktoberfest-2022
torch-elastic
flyte-console
engineeringlabs
helsing-flyte
flyte-documentation
konan-integration
databricks-integration
ray-integration
wg-gpu-types
flytekit
ecosystem-unionml
scipy-2022-sprint
announcements
ask-the-community
flyte-deployment
introductions
events
Powered by
#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
g
Gopal Vashishtha
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-
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?
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
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
Post