Download the PHP package connectholland/tactician-scheduler-plugin without Composer
On this page you can find all versions of the php package connectholland/tactician-scheduler-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download connectholland/tactician-scheduler-plugin
More information about connectholland/tactician-scheduler-plugin
Files in connectholland/tactician-scheduler-plugin
Package tactician-scheduler-plugin
Short Description Tactician plugin that allows scheduling a command to be executed at a specific time in the future
License MIT
Informations about the package tactician-scheduler-plugin
tactician-scheduler-plugin
Tactician plugin that allows scheduling a command to be executed at a specific time in the future
Concept
This plugin allows you to create ScheduledCommands that will be executed at a specific time in the future.
Usage
Make sure you put the SchedulerMiddleware in your CommandBus middleware chain:
Let the command you want to schedule extend from AbstractScheduledCommand or implement the ScheduledCommandInterface. Create it and set a execution time:
Create a bootstrap file that builds your Commandbus and cron the schedule execution command, for example bootstrap.php
Cron the scheduler at any interval you like (the more it runs, the better you can time your commands), example for once a minute
Or you can use the daemon command that ships with the package, to schedule an iteration every 10 seconds use:
To make it stop after a minute use:
All versions of tactician-scheduler-plugin with dependencies
ramsey/uuid Version ^2.8
symfony/console Version ^2.7