From 1c74fe1be86ba7ba67822125806c46b93de0343f Mon Sep 17 00:00:00 2001 From: Viktor Masicek Date: Fri, 14 Jun 2024 14:10:11 +0200 Subject: [PATCH] Set max enabled priority --- src/DI/BackgroundQueueExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DI/BackgroundQueueExtension.php b/src/DI/BackgroundQueueExtension.php index a6544bc..740eb96 100644 --- a/src/DI/BackgroundQueueExtension.php +++ b/src/DI/BackgroundQueueExtension.php @@ -36,7 +36,7 @@ public function getConfigSchema(): Schema 'locksDir' => Expect::string()->required(), 'queue' => Expect::string()->required(), 'bulkSize' => Expect::int(1)->min(1), - 'priorities' => Expect::arrayOf(Expect::int()->min(1))->default([1])->mergeDefaults(false), + 'priorities' => Expect::arrayOf(Expect::int()->min(1)->max(999))->default([1])->mergeDefaults(false), 'connection' => Expect::anyOf('string', Expect::arrayOf('int|string|object', 'string')), 'tableName' => Expect::string('background_job'), 'producer' => Expect::string()->nullable(),