litiano / laravel-queue-for-windows
Laravel Queue for Windows
v1.0.3
2023-04-19 12:50 UTC
Requires
- php: ^7.4|^8.0|^8.1|^8.2
- illuminate/console: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/queue: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0
README
Features:
- 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.
Install instructions:
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.
Examples:
Create a service for all queues:
php artisan windows:service:queue:create LaravelAllQueue
Create a service for queue "orders_queue"
php artisan windows:service:queue:create LaravelOrdersQueue --queue=orders_queue
Create a service for queue "invoices_queue" and "shipments_queue"
php artisan windows:service:queue:create LaravelInvoicesAndShipmentsQueues --queue=orders_queue,shipments_queue
Uninstall instructions:
- Run
bin/{WINDOWS_SERVICE_NAME}/LaravelQueueService.exe
as administrator and click onUninstall
button to remove Windows service.
Commands:
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.
Windows service project:
https://github.com/Litiano/Windows-service-for-Laravel-queue