I'm using minit to handle backups for my Docker services. On one of them, I misconfigured the schedule, to run every hour. But the backup takes more than an hour, resulting in a second backup starting while the first one was still running.
This is often not desired. Ideally, minit should provide an option to prevent starting a cron based command if a previous one is still running (and it should probably be the default behavior). But in this case, there should be another "timeout" option, to kill a running command if it takes more than the specified amount of time (to prevent hanging script to completely block next run, with a default value of 0, meaning unlimited)
I'm using minit to handle backups for my Docker services. On one of them, I misconfigured the schedule, to run every hour. But the backup takes more than an hour, resulting in a second backup starting while the first one was still running.
This is often not desired. Ideally, minit should provide an option to prevent starting a cron based command if a previous one is still running (and it should probably be the default behavior). But in this case, there should be another "timeout" option, to kill a running command if it takes more than the specified amount of time (to prevent hanging script to completely block next run, with a default value of 0, meaning unlimited)