Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frameworks/laravel/10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand All @@ -134,6 +135,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
vite:
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand Down Expand Up @@ -151,6 +152,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
vite:
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand Down Expand Up @@ -151,6 +152,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
vite:
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand Down Expand Up @@ -151,6 +152,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
vite:
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand All @@ -134,6 +135,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
# Mix rebuilds into public/, which nginx already serves, so unlike vite there
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand All @@ -134,6 +135,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
# Mix rebuilds into public/, which nginx already serves, so unlike vite there
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand All @@ -134,6 +135,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
# Mix rebuilds into public/, which nginx already serves, so unlike vite there
Expand Down
2 changes: 2 additions & 0 deletions frameworks/laravel/9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ workers:
restart: always
exclude_check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
schedule:
label: Task Scheduler
icon: clock
Expand All @@ -134,6 +135,7 @@ workers:
restart: always
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue
vite:
Expand Down
15 changes: 15 additions & 0 deletions packages/laravel-horizon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ workers:
command: php artisan horizon
reload_command: php artisan horizon:listen
restart: always
# Horizon reads only Redis. Paired with composer so a binary that predates
# when_env still sees the rule it always did.
check:
composer: laravel/horizon
when_env: QUEUE_CONNECTION=redis
conflicts_with:
- queue

Expand All @@ -21,3 +26,13 @@ suggest_services:
reason: Horizon runs its queues on Redis
- name: valkey
reason: Redis-compatible queues for Horizon

doctor:
checks:
- name: horizon_queue_connection
type: env_combo
check:
composer: laravel/horizon
warn_if:
QUEUE_CONNECTION: database
detail: "Horizon only processes Redis queues, and QUEUE_CONNECTION is database. Set QUEUE_CONNECTION=redis to use Horizon, or run the queue worker for database jobs."
Loading