-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
Description
A scheduled task in symfony is usually a command that is called from an external scheduling system, for example the linux cron system. While this has its advantages, it also has the drawback that the configuration is not in source control or at least at a different location.
Other frameworks, for example Laravel (https://laravel.com/docs/7.x/scheduling) solved this in a simple way. There is only one cronjob to be configured with the lowest period (every minute) that calls a central command. This command detects all commands that have a scheduling configuration an executes them if necessary.
Example
See https://laravel.com/docs/7.x/scheduling