Might be - this is when you choose to "abort" in the UI?
How exactly is the clearml-agent killing the task?
Hi SuccessfulKoala55 , thanks for the idea! the function isn’t called with atexit.register() though, maybe the way the agent kills the task is not supported by atexit
Hi JitteryCoyote63 , I would try to register an at_exit()
handler, as the experiment is closed externally by the executing agent