tback / laravel-scheduledaemon by tback

ScheduleDaemon for Laravel. You must ensure every schedule:run is shorter then 60 seconds otherwise events might be ignored.
18,160
0
2
Package Data
Maintainer Username: tback
Maintainer Contact: till@backha.us (Till Backhaus)
Package Create Date: 2016-11-17
Package Last Update: 2017-12-05
Home Page: https://packagist.org/packages/tback/scheduledaemon
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:25:20
Package Statistics
Total Downloads: 18,160
Monthly Downloads: 30
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 3
Total Open Issues: 0

laravel-scheduledaemon

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.

Installation

This package requires at least Laravel 5.5. Install via composer:

composer require tback/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,
    //..
];

Usage

php ./artisan schedule:daemon