mercredi 3 octobre 2018

Laravel 5.6. Stop a worker AFTER job execution with supervisor

Is it possible to send a stop signal to the worker in such a way, that it will stop only AFTER processing the job.

Currently I have a job, that takes some time AND can't be interrupted, cause I have only one try/attempt.

Sometimes I need to stop workers to redeploy my code. Is there a way to stop Laravel's worker only after finishing current job and before starting a new one?

I'm using supervisor for restarting the queue workers.

Cause currently on each deploy I'm loosing 1 job and my client loses money :(



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2zOTWmZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire