How to gracefully stop a Laravel CLI command
Published in
1 min readMay 9, 2018
Last week I was building a console command on top of Laravel that could be running for a long time. It was a long-running process that runs a queue worker. It reads from a queue, does some processing on the data and, then forward it to another queue. And the important bit: the item that is currently processed by the worker should be finished before the worker can quit. Here’s how I did that.
For the full blog. View on https://www.egeniq.com/blog/how-gracefully-stop-laravel-cli-command