orobogenius / sansdaemon

Batch process Laravel Queue without a daemon; Processes queue jobs and kills the process
https://medium.com/@orobogenius/laravel-queue-processing-on-shared-hosting-dedd82d0267a
MIT License
176 stars 17 forks source link

difference with this command php artisan queue:work --stop-when-empty #24

Closed matiazar closed 4 years ago

matiazar commented 4 years ago

Hi. great job... but i have a question to know what to use in my case

whats the difference with this package and this command php artisan queue:work --stop-when-empty

thanks in advance!

orobogenius commented 4 years ago

@matiazar this package was developed before Laravel 5.7 which is when the --stop-when-empty option was introduced. Before then, the queue worker only supported the full daemon mode to run queues and that wasn't great for cases where you have limited time to process queue on the job because of limitation on the server or when not using it in CLI SAPI.

matiazar commented 4 years ago

@orobogenius thanks for answering me !