Repository navigation
v0.3.0
Third experiment: what queue:work and rabbitmq:consume do while they are paused: in maintenance mode, after SIGUSR2, or with queue:pause.
queue:workstops at once on SIGTERM and within--sleeponqueue:restart, also while it is paused.rabbitmq:consumeacts on SIGTERM andqueue:restartonly afterartisan upor SIGCONT, and runs one more job first. While it is paused, it holds the messages RabbitMQ sends it, up to the prefetch count, so another worker on the same queue gets none of them. It ignoresqueue:pause.- An idle
rabbitmq:consumedoes restart onqueue:restarton these versions (vyuldashev/laravel-queue-rabbitmq#587).
Other changes:
- Every experiment gives its workers a storage directory of their own (
LAB_STORAGE) with a file cache, so a manualartisan downdoesn't reach them. - The event logs also record
JobPopping,WorkerPausingandWorkerQueuePaused. - The README starts with a summary of the findings and has charts drawn from the event logs.
Checked in CI with PHP 8.3–8.5, Laravel 13.37, php-amqplib 3.7.5 and RabbitMQ 3.13.3. Until vyuldashev/laravel-queue-rabbitmq#680 is released, the package is installed from its branch.