From 2811a8814268b64611cdff36985cfceeb0d7e401 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 26 Mar 2026 18:00:34 +0100 Subject: [PATCH] refactor(job): use camelCase for queue enum values --- app/Enums/ProcessingQueue.php | 12 ++++++------ config/horizon.php | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/Enums/ProcessingQueue.php b/app/Enums/ProcessingQueue.php index 1c9a661740..0b75298532 100644 --- a/app/Enums/ProcessingQueue.php +++ b/app/Enums/ProcessingQueue.php @@ -8,11 +8,11 @@ enum ProcessingQueue: string { case Default = 'default'; case High = 'high'; - case StandardDeployment = 'standard-deployment'; - case ProductionDeployment = 'production-deployment'; + case StandardDeployment = 'standardDeployment'; + case ProductionDeployment = 'productionDeployment'; - case WorkerDefault = 'worker-default'; - case WorkerHigh = 'worker-high'; - case WorkerStandardDeployment = 'worker-standard-deployment'; - case WorkerProductionDeployment = 'worker-production-deployment'; + case WorkerDefault = 'workerDefault'; + case WorkerHigh = 'workerHigh'; + case WorkerStandardDeployment = 'workerStandardDeployment'; + case WorkerProductionDeployment = 'workerProductionDeployment'; } diff --git a/config/horizon.php b/config/horizon.php index 3ac806581c..0f9e1758f3 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -87,12 +87,12 @@ return [ 'waits' => [ 'redis:high' => 10, 'redis:default' => 20, - 'redis:production-deployment' => 10, - 'redis:standard-deployment' => 20, - 'redis:worker-high' => 10, - 'redis:worker-default' => 20, - 'redis:worker-production-deployment' => 10, - 'redis:worker-standard-deployment' => 20, + 'redis:productionDeployment' => 10, + 'redis:standardDeployment' => 20, + 'redis:workerHigh' => 10, + 'redis:workerDefault' => 20, + 'redis:workerProductionDeployment' => 10, + 'redis:workerStandardDeployment' => 20, ], /* @@ -208,7 +208,7 @@ return [ ], 'deployments' => [ 'connection' => 'redis', - 'queue' => ['production-deployment', 'standard-deployment'], + 'queue' => ['productionDeployment', 'standardDeployment'], 'balance' => false, 'autoScalingStrategy' => 'time', 'maxTime' => 3600, @@ -223,7 +223,7 @@ return [ ...((bool) env('WORKER_SERVER', false) ? [ 'worker-jobs' => [ 'connection' => 'redis', - 'queue' => ['worker-high', 'worker-default'], + 'queue' => ['workerHigh', 'workerDefault'], 'balance' => false, 'autoScalingStrategy' => 'time', 'maxTime' => 3600, @@ -236,7 +236,7 @@ return [ ], 'worker-deployments' => [ 'connection' => 'redis', - 'queue' => ['worker-production-deployment', 'worker-standard-deployment'], + 'queue' => ['workerProductionDeployment', 'workerStandardDeployment'], 'balance' => false, 'autoScalingStrategy' => 'time', 'maxTime' => 3600,