- Laravel Queue as Windows native service with gracefully stop and restart.
- Gracefully exit on Ctrl+C event if running in console.
- Stop and restart services individually.
- Create a service for all queues or a specific queue.
- Create multiple Windows services.
composer require litiano/laravel-queue-for-windows
php artisan windows:service:queue:create {WINDOWS_SERVICE_NAME}"
* see examples.- Run
bin/{WINDOWS_SERVICE_NAME}/LaravelQueueService.exe
as administrator and click onInstall
button to create Windows service. - Open Windows service manager and start your new service.
php artisan windows:service:queue:create LaravelAllQueue
php artisan windows:service:queue:create LaravelOrdersQueue --queue=orders_queue
php artisan windows:service:queue:create LaravelInvoicesAndShipmentsQueues --queue=orders_queue,shipments_queue
- Run
bin/{WINDOWS_SERVICE_NAME}/LaravelQueueService.exe
as administrator and click onUninstall
button to remove Windows service.
windows:service:queue:create {WINDOWS_SERVICE_NAME}
- Create new configuration.windows:service:queue:restart --windowsServiceName={WINDOWS_SERVICE_NAME}
- Gracefully exitwindows:service:queue:work --windowsServiceName={WINDOWS_SERVICE_NAME}
- Start service- Use
--help
option for display details.
https://github.com/Litiano/Windows-service-for-Laravel-queue