-
Notifications
You must be signed in to change notification settings - Fork 170
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
Add Cron Monitoring for the Scheduler Component #776
Comments
Hello, I am interested in using and implementing this feature as well. Scheduler seems to have everything we need to implement this, the most important being that Scheduler dispatches events before and after running crons. Questions that come to mind are:
|
Our SDK has a baseline of PHP 7.2. If we conditionally can make this work, I'm ok with adding the Cron's configuration via attributes. I'm aware that the scheduler component is only available from PHP 8.1 and up. |
Doctrine annotations can be used as a fallback, but it is not a dependency. Attributes are "compatible" with PHP 7, in a sense that the compiler just ignores it. Scheduler has indeed been introduced in Symfony 6.3, which requires PHP 8.1+. We could throw an exception for this feature when PHP_VERSION<8.1 just in case. |
We rather don’t want to throw exceptions but instead fail silently and emit a debug log entry. |
Symfony 6.3 added a new Scheduler Component, something we should add support for, for Cron Monitoring.
https://symfony.com/blog/new-in-symfony-6-3-scheduler-component
The text was updated successfully, but these errors were encountered: