Package Data | |
---|---|
Maintainer Username: | iivannov |
Maintainer Contact: | iivannov@gmail.com (Ivan Ivanov) |
Package Create Date: | 2017-02-23 |
Package Last Update: | 2017-02-23 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-14 15:17:11 |
Package Statistics | |
---|---|
Total Downloads: | 4,016 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Via Composer
$ composer require iivannov/elegant-laravel-worker
To replace the default Queue Worker with this one, you need to add the ElegantWorkerServiceProvider class to the providers array in your config\app.php
'providers' => [
...
Iivannov\ElegantWorker\ElegantWorkerServiceProvider::class,
];
Gracefully stop a Queue Worker by using SIGTERM signal.
There are many cases that will require to restart the worker.
When SIGTERM is received by the Worker it interrupts immediately the currently processed job, which may break your application by not letting the job finish leading to unexpected results.
When SIGTERM is received by the Worker it will wait for the currently processed job to finish and then will exit gracefully.