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

Job was not scheduled - Bug? #358

Open
mmodler opened this issue Jan 2, 2018 · 1 comment
Open

Job was not scheduled - Bug? #358

mmodler opened this issue Jan 2, 2018 · 1 comment

Comments

@mmodler
Copy link

mmodler commented Jan 2, 2018

Hi & happy new year,

i have a job which should run every day at 8:05 UTC. The last days, it did not run one day. I first thought the cron was the problem, but everything was fine. It looks like the scheduler midded to schedule it:

2017-12-25T07:45:38+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2017-12-25 08:00:00". (Duration: 0.59 sec)

Ok, so i would expect the scheduler himself to work again at 8:00 to create the schedule for 8:05. But at 8:00 many jobs where running, but no schedule generation.

Then:

2017-12-25T08:05:02+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2017-12-25 08:20:00". (Duration: 0.49 sec)
2017-12-25T08:05:02+00:00 DEBUG (7): History cleanup (Duration: 0.03 sec)

No other tasks run at 8:05 - which is obvious because they have never been scheduled for 8:05? How could this happen?

@MTindev
Copy link

MTindev commented Jan 28, 2021

Hello,

Did you find a solution @mmodler ?

Same issue for me.
The main cron is sheduled to run every 5 minutes.
The configuration is set to generate tasks every 15 minutes for the next 20 minutes (ahead). This is the common Magento configuration.

In my case :

2021-01-28T09:50:28+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2021-01-28 10:05:00". (Duration: 0.15 sec)
2021-01-28T10:10:01+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2021-01-28 10:25:00". (Duration: 0.2 sec)
2021-01-28T10:25:26+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2021-01-28 10:40:00". (Duration: 0.15 sec)

In this way, no task have been generated at 10:10.

And this behaviour creates a big issue, because each hour almost one "5 min. occurrence" is not scheduled and that forgets (often) processes that are expected to be executed only one time in the day, and they finally are not executed at all.

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