-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Scheduler] messages won't run, "Next run" always adds the interval to current time #58124
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
Comments
Did you consume the messages at least once? Your cache will store the last execution time which defaults to now if no value is found. You can also check the presence of the |
Yes I have a messenger consume running with the scheduler_default queue. I saw it creating the checkpoint once though the behaviour still persisted |
I had a look at the code. It's by design. The The real scheduling process uses the So it's not a bug but may be a feature to extend the |
The Handler for the |
Can you create a small example application that allows to reproduce your issue? |
I am going to close here for now due to the lack of feedback. Please let us know when you have more information and we can consider to reopen. |
I am sorry, I have no idea how to setup this kind of project. I know it is a problem we have in the mbin project. Maybe you can try to look at that project? https://github.com/MbinOrg/mbin/ |
Symfony version(s) affected
7.1.1
Description
When running the command
php bin/console debug:scheduler
I get this output:The "Next Run" column will always show the current time plus the interval, ergo the messages are not running
How to reproduce
Add a default schedule:
The message classes are just empty ones. I already tried generating the schedule with the
make:schedul
command, same resultPossible Solution
No response
Additional Context
I added a schedule and 2 messages, one that runs every day and a new one that runs every minute, because I noticed that the job isn't running, so I wanted to debug it
The text was updated successfully, but these errors were encountered: