queueworker/sansdaemon
Larablocks Analysis
queueworker/sansdaemon works with Laravel 6 to 10 (latest release v1.2.7, Mar 28, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 6 to 10, past end of life since Feb 4, 2025
- No release in the last 12 months (last: Mar 28, 2023)
- 3,212 downloads a month (needs 10,000)
- 176 GitHub stars (at least 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Mar 28, 2023.
- No releases in the last 12 months.
- First released: Jul 15, 2018.
- Monthly downloads: 3,212, up 44% from six months ago.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require queueworker/sansdaemon |
|
| Latest Version: | v1.2.7 |
| PHP: | ^7.2|^8.0 |
| Laravel: | 6 – 10 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Jul 19, 2024 |
| Links: | GitHub · Packagist |
SansDaemon
Introduction
Batch process Laravel Queue without a daemon; Processes all jobs on the queue(s) and exits without running on daemon mode. This is useful in cases where you just want to process jobs on the queue and exit the worker process so they don't pile up in memory.
Installation
To install the latest version of SansDaemon, simply use composer
Download
composer require queueworker/sansdaemon
- If your Laravel version is below 5.5, you'll need to add the service provider to your
config/app.phpfile.
Queueworker\SansDaemon\SansDaemonServiceProvider::class,
Usage
SansDaemon is a console application that extends the functionality of laravel's WorkCommand - Illuminate\Queue\Console\WorkCommand. See Laravel Queue documentation.
To run the queue worker sans-daemon mode, simply add the --sansdaemon option to the original laravel queue worker command:
php artisan queue:work --sansdaemon
Argument and Options
Since this package extends laravel's WorkCommand, it takes exactly all the arguments and options the original WorkCommand takes with three added options:
--sansdaemonoption tell the worker to process jobs on the queue without running in daemon mode.--jobs(default: 0, optional) - It allows you to specify the number of jobs to process each time the command runs. The default value0means it'll process all available jobs in the queue.--max_exec_time(default:ini_get('max_execution_time') - 5s, optional) - On some webhosts, your scripts will be killed, if it exceeds some amount of time. To prevent this behavior on really full queue, worker will stop after--max_exec_time. This is especially useful if you're running this command via your application's route or controller. See Laravel Documentation on how to run your queue programmatically.
Note on --max_exec_time
0(zero) means the worker will run forever, which in this context means until the worker process is done. This is the default behavior when run from CLI.- This option will not prevent
Maximum execution time exceedederror, it'll try to avoid it by not running the next job on the queue if the script is reaching its max_execution_time
Testing
composer test
License
MIT license (MIT) - Check out the License File for more.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.2.7 | ^7.2| | ^6.0| | MIT | |
| v1.2.6 | ^7.2| | ^6.0| | MIT | |
| v1.2.5 | ^7.2| | ^6.0| | MIT | |
| v1.2.4 | ^7.2| | ^6.0| | MIT | |
| v1.2.3 | ^7.2 | ^6.0| | MIT | |
| v1.2.2 | ^7.2 | ^6.0| | MIT | |
| v1.2.1 | ^7.2 | ^6.0 | MIT | |
| v1.2.0 | ^7.2 | ^6.0 | MIT | |
| v1.1.1 | >=5.6.4 | ~5 | MIT | |
| v1.1.0 | >=5.6.4 | MIT | ||
| v1.0.0 | >=5.6.4 | MIT |