Re: Custom Executor issue, killTask, task LOST

2015-07-23 Thread Eren Güven
Thanks for the answer David, I ended up doing exactly that. On 23 July 2015 at 17:13, David Greenberg wrote: > It's the responsibility of each executor to shut itself down when it > decides its no longer needed. The idea here is that an executor can stay > running with zero tasks, so that when t

Re: Custom Executor issue, killTask, task LOST

2015-07-23 Thread David Greenberg
It's the responsibility of each executor to shut itself down when it decides its no longer needed. The idea here is that an executor can stay running with zero tasks, so that when the scheduler decides to launch a task, the scheduler's already initialized, thus saving startup time. To avoid the pr

Custom Executor issue, killTask, task LOST

2015-07-23 Thread Eren Güven
Hello, *TL;DR*: What is the proper way to kill executor process(tree) from within executor code? I have an executor written in python that I use with Marathon to launch my tasks. I use it to have a control on task status switch STAGING => RUNNING. I launch a long-running subprocess from the `laun