jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

Prevent simultaneous runs of the same job #164

Open andrey-yantsen opened 8 years ago

andrey-yantsen commented 8 years ago

Add ability to prevent simultaneous runs for some jobs (not all jobs, but configuration option)

jamesrwhite commented 8 years ago

Should be possible, when the job calls the API to initialise (here: https://github.com/jamesrwhite/minicron/blob/7bf99c0723fc765991b7621d839c177159364efe/lib/minicron/cli/commands.rb#L152) it can check if there is a "lock" in place on that job.