execbeat icon indicating copy to clipboard operation
execbeat copied to clipboard

Feature request: process management capabilities

Open jautz opened this issue 7 years ago • 3 comments

I would like to ask whether there are any process management capabilities planned. To be more specific I am talking about the following options:

  1. Single Instance: when the last spawned subprocess for a certain configured command has not returned yet but the scheduler is due again, do not start another instance of it.
  2. Terminate after Timeout: when a subprocess has not returned but the configured timeout has expired send a TERM signal, and after a couple of seconds a KILL signal if necessary.

Of course, these features should be optional and would need to be activated explicitly per configuration. I am aware that I could realize these features myself. The first one is rather easy by using a lock file. The second one is a bit more complicated, probably I would use an intermediate command that would spawn the desired command and clean up on timeout.

But it boils down to the question whether you agree that having these features in execbeat would be a benefit compared to users writing their own code to accomplish these goals.

jautz avatar Mar 16 '17 19:03 jautz

Both features definitely make sense and would be a nice addition. Do you see an option to provide a PR for one or both features?

christiangalsterer avatar Mar 16 '17 21:03 christiangalsterer

Regretfully I have never written a single line of go code and these features do not seem to be the right tasks for a rookie to get started. If it were perl or python I would happily try to contribute.

jautz avatar Mar 17 '17 13:03 jautz

Ok no problem. I will look into it but it may take a little as this a little big bigger topic and a little bit limited in time right now.

On 17.03.2017, at 14:09, Joachim Jautz [email protected] wrote:

Regretfully I have never written a single line of go code and these features do not seem to be the right tasks for a rookie to get started. If it were perl or python I would happily try to contribute.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

christiangalsterer avatar Mar 17 '17 15:03 christiangalsterer