I don't understand the behavior of the scheduler synchronization #216
-
The scheduler randomly crashes with the following error. It breaks about one of twenty times so I don't really care but I would like to understand. :)
I launch the scheduler every minute in my host crontab :
Thanks for this package |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @xaviermarchegay 👋🏻 The goal of the synchronisation is to ensure that the scheduler is "up to date" regarding the VM / OS / Container internal clock. Regarding the error, I might know why it happen, due to PHP 8.0 migration, the internal logic used to check this synchronisation has been changed: https://github.com/Guikingone/SchedulerBundle/blob/main/src/Scheduler.php#L289, it might explain why you're encountering the error. Just to be sure, when you're launching: /usr/bin/docker exec -u www-data picophony-php /bin/bash -c "bin/console scheduler:consume" It is launched using cron via a container or directly in the VM / server? Thanks for the precision and sorry for this bug, I'm gonna fix it ASAP 🙂 |
Beta Was this translation helpful? Give feedback.
-
The command is set in the crontab of the server. Again, it is not a big deal since it almost works all the time and it is a personal project. |
Beta Was this translation helpful? Give feedback.
Hi @xaviermarchegay 👋🏻
The goal of the synchronisation is to ensure that the scheduler is "up to date" regarding the VM / OS / Container internal clock.
Regarding the error, I might know why it happen, due to PHP 8.0 migration, the internal logic used to check this synchronisation has been changed: https://github.com/Guikingone/SchedulerBundle/blob/main/src/Scheduler.php#L289, it might explain why you're encountering the error.
Just to be sure, when you're launching:
It is launched using cron via a container or directly in the VM / server?
Thanks for the precision and sorry for this bug, I'm gonna …