Provides a single artisan command to run schedule:run
as a daemon. Use this if, and only if you can guarantee that all your schedule:run
executions will terminate in 60 seconds or less. This should be easy if you use schedule:run
only to dispatch scheduled jobs to workers. Events might me dropped in case the runs take longer to finish.
This package requires at least Laravel 5.5. Install via composer:
composer require traum-ferienwohnungen/scheduledaemon
Laravels package auto-discovery feature is supported, so nothing more to do.
You may add ServiceProvider manually by editing config/app.php
:
...
$providers => [
//...
ScheduleDaemon\ServiceProvider::class,
//..
];
php ./artisan schedule:daemon