hi all, I have a task to call a client which used to run the pipeline in certain platform, and I want to cancel the pipeline running when I click the terminate button in flyte UI, I have tried to use
atexist
to register
clinet.cancel_running
in the task, but termination of flyte workflow does not call
@millions-summer-85484, since you want to terminate an execution that's running elsewhere, please make sure you're terminating it correctly. Is it working when you aren't including the same in a Flyte task?
f
freezing-airport-6809
08/30/2023, 2:41 PM
@millions-summer-85484 today we do not handle docker termination. https://docs.python.org/3/library/atexit.html
Hence it does not. Get invoked. You can contribute a signal handler to pyflyte-execute
m
millions-summer-85484
08/30/2023, 4:05 PM
Is it working when you aren't including the same in a Flyte task?
it's working when I explicitly call the method of canceling.
@freezing-airport-6809 I see, is there any other method to achieve the same effect?
f
freezing-airport-6809
08/30/2023, 5:47 PM
if you are simply calling external services, recommend Agents