All Projects → orobogenius → Sansdaemon

orobogenius / Sansdaemon

Licence: mit
Batch process Laravel Queue without a daemon; Processes queue jobs and kills the process

Projects that are alternatives of or similar to Sansdaemon

Laravel Job Status
Add ability to track Job progress, status and result dispatched to Queue.
Stars: ✭ 279 (+134.45%)
Mutual labels:  laravel, queue
Laravel Rate Limited Job Middleware
A job middleware to rate limit jobs
Stars: ✭ 166 (+39.5%)
Mutual labels:  laravel, queue
Laravel Queue Monitor
Monitoring Laravel Jobs with your Database
Stars: ✭ 136 (+14.29%)
Mutual labels:  laravel, queue
Laravel Queue Rabbitmq
RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.
Stars: ✭ 1,175 (+887.39%)
Mutual labels:  laravel, queue
Laravel Queue Database Ph4
Laravel Database Queue with Optimistic locking
Stars: ✭ 37 (-68.91%)
Mutual labels:  laravel, queue
Laravel Failed Job Monitor
Get notified when a queued job fails
Stars: ✭ 582 (+389.08%)
Mutual labels:  laravel, queue
Laravel Queue
Laravel Enqueue message queue extension. Supports AMQP, Amazon SQS, Kafka, Google PubSub, Redis, STOMP, Gearman, Beanstalk and others
Stars: ✭ 155 (+30.25%)
Mutual labels:  laravel, queue
Laravel Couchbase
Couchbase providers for Laravel
Stars: ✭ 31 (-73.95%)
Mutual labels:  laravel, queue
Laravel Elasticbeanstalk Queue Worker
Stars: ✭ 48 (-59.66%)
Mutual labels:  laravel, queue
Rabbitevents
Nuwber's events provide a simple observer implementation, allowing you to listen for various events that occur in your current and another application. For example, if you need to react to some event published from another API.
Stars: ✭ 84 (-29.41%)
Mutual labels:  laravel, queue
Bilibili member crawler
B站用户爬虫 好耶~是爬虫
Stars: ✭ 115 (-3.36%)
Mutual labels:  queue
Collections.pooled
Fast, low-allocation ports of List, Dictionary, HashSet, Stack, and Queue using ArrayPool and Span.
Stars: ✭ 115 (-3.36%)
Mutual labels:  queue
Laravel Hateoas
Expose the authorization logic of your REST API using HATEOAS links
Stars: ✭ 116 (-2.52%)
Mutual labels:  laravel
Laravel Invoicable
Easy invoice creation for Laravel
Stars: ✭ 118 (-0.84%)
Mutual labels:  laravel
Goodwork
Self hosted project management and collaboration tool powered by TALL stack
Stars: ✭ 1,730 (+1353.78%)
Mutual labels:  laravel
Jwt Auth
🔐 JSON Web Token Authentication for Laravel & Lumen
Stars: ✭ 10,305 (+8559.66%)
Mutual labels:  laravel
Ticket
简单的工单系统
Stars: ✭ 114 (-4.2%)
Mutual labels:  laravel
Passport Social Grant
Stars: ✭ 114 (-4.2%)
Mutual labels:  laravel
Laravel Blink
Cache that expires in the blink of an eye
Stars: ✭ 114 (-4.2%)
Mutual labels:  laravel
Laravel Natural Language
This package makes using the Google Natural API in your laravel app a breeze with minimum to no configuration, clean syntax and a consistent package API.
Stars: ✭ 119 (+0%)
Mutual labels:  laravel

SansDaemon

Build Status Latest Stable Version Total Downloads License

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.php file.
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:

  • --sansdaemon option 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 value 0 means 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 exceeded error, 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].