aequasi/cron-bundle
Symfony bundle for registering and running recurring tasks via annotated Console Commands. Scan commands with cron:scan, then execute due jobs with cron:run. Uses DateInterval specs (e.g., PT1H) and works with a system cron to trigger runs periodically.
cron:run is triggered), which aligns with:
AppKernel. Minimal boilerplate for task registration.ContainerAwareCommand). May conflict with existing command structures or PSR-15 middleware patterns.cron:run is triggered concurrently.cron:run exposes a potential attack surface if not secured (e.g., rate-limiting, authentication).spiral/robo (for task scheduling).enqueue/amqp-ext (for distributed workers).Console component directly.spatie/schedule (if migrating to Laravel).Console, DependencyInjection).AppKernel.php.@Aequasi\Bundle\CronBundle\Annotation\Cron.app/console cron:run at desired intervals.CronExpression + custom scheduler.symfony/lock + Console commands.spatie/schedule or Laravel’s built-in scheduler.Console, DependencyInjection, and Config. Conflicts unlikely unless using custom command buses.pcntl may be needed for process management in commands.symfony/cache) for lightweight tracking.cron:run triggers.monolog integration).max_execution_time, memory).cron:run on multiple servers risks duplicate task execution.cron:run execution.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| System cron misconfiguration | Tasks never run. | Use webhook triggers or managed cron. |
| PHP process crashes | Unhandled task failures. | Implement retry logic in commands. |
Concurrent cron:run |
Race conditions, duplicate work. | Add locking (e.g., symfony/lock). |
| Task timeout | Partial execution. | Break tasks into smaller chunks. |
| Bundle incompatibility | Deployment failures. | Fork/maintain or replace bundle. |
/cron/run) with security (e.g., API keys).How can I help you explore Laravel packages today?