Skip to content

Task Scheduling / Cronjobs Configuration Inside Framework #36821

@checkphi

Description

@checkphi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions