Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding timeout to prevent overlapping cron jobs #813

Open
hoverjet opened this issue Feb 17, 2021 · 2 comments
Open

Adding timeout to prevent overlapping cron jobs #813

hoverjet opened this issue Feb 17, 2021 · 2 comments

Comments

@hoverjet
Copy link

What about adding timeout on every or job level to prevent overlapping cron jobs?
https://man7.org/linux/man-pages/man1/timeout.1.html

Examples:

every :day, at: '12:20am', timeout: 10.minutes do
  rake "app_server:task"
end
every :day, at: '12:20am' do
  rake "app_server:task", timeout: 10.minutes
end
@hoverjet hoverjet changed the title Adding timeout to prevent overlapping cron jobs Adding timeout to prevent overlapping cron jobs Feb 17, 2021
@vijayshankar037
Copy link

Does this gem support timeout: ?

@vijayshankar037
Copy link

It would be great if we can add this option. 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants