Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Description
Symfony version(s) affected
6.4
Description
One of my command didn't work this night.
Using the Scheduler.
A consume that manages the scheduler only.
A consume that manages the final execution of commands / other asynchronous messages.
How to reproduce
I have a command that needs to run every hour (#[AsCronTask('0 * * * *', transports: 'async')])
I have a command that must run every night at 1am (#[AsCronTask('0 1 * * *', transports: 'async')])
Run bin/console messenger:consume scheduler_default --limit=10
If my consume has executed 9 messages, and 1am arrives:
- my command, which should run every hour, has been inserted in my async queue
- consume is finished since 10 messages have been reached
- a new consume starts immediately
=> My 2nd command command which is supposed to run at 1am has not been inserted in my async queue
I use statefull option with RedisCacheAdapter (I see 01:00:00.00.000000 DateTimeImmutable in redis)
I use a --limit to avoid excessive memory consumption in the event of a memory leak.
Is it normal for the 2nd order not to be executed when it's still 01:00 ?
Possible Solution
No response
Additional Context
No response