laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.88k stars 659 forks source link

The "--force" option does not exist. #1362

Closed tanshiqi closed 11 months ago

tanshiqi commented 11 months ago

Horizon Version

5.21.4

Laravel Version

10.33.0

PHP Version

8.3.0

Redis Driver

PhpRedis

Redis Version

7.2.3

Database Driver & Version

No response

Description

I used the following command to enter maintenance mode:php artisan down --secret=1234 After I use secret to access website. The horizon dashboard show:

This application is in "maintenance mode". Queued jobs may not be processed unless your worker is using the "force" flag.

But when I use php artisan horizon --force. It returns: The "--force" option does not exist.

So how to use horizon to continue process jobs in maintenance mode?

Steps To Reproduce

php artisan horizon --force

driesvints commented 11 months ago

You typically add this option to your supervisor config. I've sent in a PR to the docs for this: https://github.com/laravel/docs/pull/9233