Skip to content

fix(laravel): keep Horizon to sites that queue to Redis - #106

Merged
geodro merged 1 commit into
mainfrom
fix/horizon-queue-connection
Nov 3, 2026
Merged

geodro merged 1 commit into
mainfrom
fix/horizon-queue-connection

Conversation

@geodro

@geodro geodro commented Nov 3, 2026

Copy link
Copy Markdown
Member

Horizon only reads Redis queues, so on a site with QUEUE_CONNECTION=database it ran while the jobs sat in the table. Horizon's check and the queue worker's exclude_check now carry when_env: QUEUE_CONNECTION=redis across every Laravel major and the Horizon package, so a lerd that understands the key runs the queue worker on any other connection. Each rule keeps its composer match, so lerd 1.38 and older read exactly the rule they read today.

The Horizon package also gains a doctor warning for QUEUE_CONNECTION=database, which tells users on an older lerd why their jobs are not being processed. Once the binary side has been out for a while the warning can go, since on a new lerd the queue worker already handles that case.

Refs lerd-env/lerd#2428

Horizon only reads Redis queues, so on a site with QUEUE_CONNECTION=database it ran while the jobs sat in the table. Horizon's check and the queue worker's exclude_check now carry when_env: QUEUE_CONNECTION=redis, so a lerd that understands the key runs the queue worker on any other connection. Each rule keeps its composer match, so an older lerd that drops when_env reads exactly the rule it reads today.

The Horizon package also gains a doctor warning for QUEUE_CONNECTION=database, which tells users on an older lerd why their jobs are not being processed.

Refs lerd-env/lerd#2428
@geodro
geodro requested a review from a team as a code owner November 3, 2026 10:21
@geodro
geodro merged commit 683eb1b into main Nov 3, 2026
1 check 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.

1 participant