This commit is contained in:
ct
2025-07-04 12:53:08 +08:00
parent 81c38dd9e3
commit b5ac848ba2
6 changed files with 298 additions and 32 deletions

View File

@@ -56,7 +56,7 @@
'prefix' => env(
'HORIZON_PREFIX',
Str::slug(env('APP_NAME', 'laravel'), '_').'_horizon:'
Str::slug(env('APP_NAME', 'laravel'), '_') . '_horizon:'
),
/*
@@ -211,6 +211,20 @@
'nice' => 0,
'rest' => 2,
],
'supervisor-ai' => [
'connection' => 'redis',
'queue' => ['ai'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 1024,
'tries' => 1,
'timeout' => 30,
'nice' => 0,
'rest' => 2,
],
'supervisor-media' => [
'connection' => 'redis',
'queue' => ['media'],
@@ -256,6 +270,20 @@
'nice' => 0,
'rest' => 2,
],
'supervisor-ai' => [
'connection' => 'redis',
'queue' => ['ai'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 1024,
'tries' => 1,
'timeout' => 30,
'nice' => 0,
'rest' => 2,
],
'supervisor-media' => [
'connection' => 'redis',
'queue' => ['media'],