syscollective / saltpeter

Distributed cron via Salt
3 stars 0 forks source link

Implement "Kill" functionality #20

Open mvintila opened 3 years ago

mvintila commented 3 years ago

Need to implement kill functionality for either a single running or the entire cron.

The first idea to implement this would be to start another job that issues a sigterm or sigkill to the process on each machine where it is running. In order to do this we need to know the PIDs of the running processes.

To be determined how this can be achieved.

Also to be determined if cancelling the Salt job by "jid" will kill the running child processes.

For "Kill cron" we need to kill all currently running machines and ensure no additional ones will be started (if the cron is "batch" type).

mvintila commented 1 year ago

Implemented for entire cron (all targets) in #28