From 9a81a82df569063acf2c223d8686ff87503c7b80 Mon Sep 17 00:00:00 2001 From: David Callizaya Date: Thu, 19 Nov 2026 17:14:34 -0400 Subject: [PATCH] feat: specific queue for saved search synch --- config/horizon.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/config/horizon.php b/config/horizon.php index 4c5a852014..c476ff5e83 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -165,6 +165,17 @@ 'memory' => env('PM4_HORIZON_WORKER_MEMORY_LIMIT', 512), 'maxJobs' => (int) env('PM4_HORIZON_SUPERVISOR_1_MAX_JOBS', 100), ], + 'supervisor-savedsearch-sync' => [ + 'connection' => 'redis', + 'queue' => ['synchronization'], + 'balance' => 'simple', + 'tries' => 1, + 'timeout' => 3600, + 'minProcesses' => env('PM4_HORIZON_SUPERVISOR_SAVEDSEARCH_SYNC_MIN_PROCESSES', 1), + 'maxProcesses' => env('PM4_HORIZON_SUPERVISOR_SAVEDSEARCH_SYNC_MAX_PROCESSES', 3), + 'memory' => 512, + 'maxJobs' => 100, + ], ], 'local' => [ @@ -191,6 +202,17 @@ 'memory' => env('PM4_HORIZON_WORKER_MEMORY_LIMIT', 512), 'maxJobs' => (int) env('PM4_HORIZON_SUPERVISOR_1_MAX_JOBS', 100), ], + 'supervisor-savedsearch-sync' => [ + 'connection' => 'redis', + 'queue' => ['synchronization'], + 'balance' => 'simple', + 'tries' => 1, + 'timeout' => 3600, + 'minProcesses' => env('PM4_HORIZON_SUPERVISOR_SAVEDSEARCH_SYNC_MIN_PROCESSES', 1), + 'maxProcesses' => env('PM4_HORIZON_SUPERVISOR_SAVEDSEARCH_SYNC_MAX_PROCESSES', 3), + 'memory' => 512, + 'maxJobs' => 100, + ], ], 'staging' => [ @@ -217,6 +239,17 @@ 'memory' => env('PM4_HORIZON_WORKER_MEMORY_LIMIT', 512), 'maxJobs' => (int) env('PM4_HORIZON_SUPERVISOR_1_MAX_JOBS', 100), ], + 'supervisor-savedsearch-sync' => [ + 'connection' => 'redis', + 'queue' => ['synchronization'], + 'balance' => 'simple', + 'tries' => 1, + 'timeout' => 3600, + 'minProcesses' => env('PM4_HORIZON_SUPERVISOR_SAVEDSEARCH_SYNC_MIN_PROCESSES', 1), + 'maxProcesses' => env('PM4_HORIZON_SUPERVISOR_SAVEDSEARCH_SYNC_MAX_PROCESSES', 3), + 'memory' => 512, + 'maxJobs' => 100, + ], ], ], ];