Restart crono issue #45

Open
opened 2025-12-29 00:21:50 +01:00 by adam · 4 comments
Owner

Originally created by @louislewatcn on GitHub (Aug 10, 2017).

I have defined 2 jobs in cronotab:
Crono.perform(CheckBuildsAndNotifyJob, "Check Build Version", "AM").every 1.day, at: '09:30'
Crono.perform(CheckBuildsAndNotifyJob, "Check Build Version", "PM").every 1.day, at: '18:30'

The crono stopped yesterday for some reason and I restart my rails server as well as crono.
And the 2 jobs are triggered immediate I start crono.
It seems that it will memorize the unperformed jobs when crono is down and will run them on next start.

How can I disable this feature?

Originally created by @louislewatcn on GitHub (Aug 10, 2017). I have defined 2 jobs in cronotab: Crono.perform(CheckBuildsAndNotifyJob, "Check Build Version", "AM").every 1.day, at: '09:30' Crono.perform(CheckBuildsAndNotifyJob, "Check Build Version", "PM").every 1.day, at: '18:30' The crono stopped yesterday for some reason and I restart my rails server as well as crono. And the 2 jobs are triggered immediate I start crono. It seems that it will memorize the unperformed jobs when crono is down and will run them on next start. How can I disable this feature?
Author
Owner

@marcindrozd commented on GitHub (Nov 8, 2017):

I have the same issue as above.

@marcindrozd commented on GitHub (Nov 8, 2017): I have the same issue as above.
Author
Owner

@edwardmp commented on GitHub (Feb 2, 2018):

I encountered the same issue, which is definitely unwanted behavior.

@edwardmp commented on GitHub (Feb 2, 2018): I encountered the same issue, which is definitely unwanted behavior.
Author
Owner

@amolbudkhe commented on GitHub (Feb 3, 2021):

@plashchynski I am also facing the same issue.
I have to stop the Crono and restart it to get the scheduled rake job executed.

@amolbudkhe commented on GitHub (Feb 3, 2021): @plashchynski I am also facing the same issue. I have to stop the Crono and restart it to get the scheduled rake job executed.
Author
Owner

@mediafinger commented on GitHub (Mar 30, 2022):

This also happens with newly defined jobs - which I wanted to execute in the middle of the night, as they drain a lot of resources and which started running directly after deployment. 🤦

@mediafinger commented on GitHub (Mar 30, 2022): This also happens with newly defined jobs - which I wanted to execute in the middle of the night, as they drain a lot of resources and which started running directly after deployment. 🤦
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/crono#45