totalcrm/command-scheduler-bundle

This Symfony bundle will allow you to schedule all your commands just like UNIX crontab

1.0.7 2022-04-25 13:24 UTC

This package is auto-updated.

Last update: 2024-04-28 16:13:06 UTC


README

This bundle will allow you to easily manage scheduling for Symfony's console commands (native or not) with cron expression.

Features

  • An admin interface to add, edit, enable/disable or delete scheduled commands.
  • For each command, you define :
    • name
    • symfony console command (choice based on native list command)
    • cron expression (see Cron format for informations)
    • output file (for $output->write)
    • priority
  • A new console command scheduler:execute [--dump] [--no-output] which will be the single entry point to all commands
  • Management of queuing and prioritization between tasks
  • Locking system, to stop scheduling a command that has returned an error
  • Monitoring with timeout or failed commands (Json URL and command with mailing)
  • Translated in french, english, german and spanish
  • An EasyAdmin configuration template available here
  • Beta - Handle commands with a deamon (unix only) if you don't want to use a cronjob

Documentation

See the documentation here.

License

This bundle is under the MIT license. See the complete license for info.