Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify connection in ClearCommand #1516

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

antennaio
Copy link
Contributor

This pull request updates the horizon:clear command to allow specifying the connection as an argument. The arguments and options will now match those of Laravel's queue:clear command, making both commands consistent and easy to remember.

Example usage:

  • php artisan queue:clear redis --queue=emails
  • php artisan horizon:clear redis --queue=emails

Why is it useful?

It will be useful to people who make use of multiple connections. Adding this feature makes it easier to target a specific connection when running horizon:clear. Other Horizon commands already support specifying the connection.

@taylorotwell taylorotwell merged commit 38e609b into laravel:5.x Nov 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants