From 8f35cc88e3204d8189fee4e330fc59dd536423eb Mon Sep 17 00:00:00 2001 From: Frankie Chow Date: Sat, 29 Jun 2024 18:50:52 +0100 Subject: [PATCH 1/2] Update JobOpts.php Add removeOnComplete and removeOnFail --- src/DTOs/JobOpts.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DTOs/JobOpts.php b/src/DTOs/JobOpts.php index 5da5d88..5ab442e 100644 --- a/src/DTOs/JobOpts.php +++ b/src/DTOs/JobOpts.php @@ -12,4 +12,6 @@ class JobOpts extends DataTransferObject public int $attempts = 1; public int $timestamp; public int $delay = 0; + public bool $removeOnComplete = false; + public bool $removeOnFail = false; } From f533011b3fc078f2687eb5fc491b7ab3a85e0e0f Mon Sep 17 00:00:00 2001 From: Frankie Chow Date: Thu, 31 Jul 2025 12:52:45 +0100 Subject: [PATCH 2/2] Update PhpRedisQueue.php added checking for empty password, skip AUTH if empty --- src/Clients/PhpRedisQueue.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Clients/PhpRedisQueue.php b/src/Clients/PhpRedisQueue.php index 4764682..d47e206 100644 --- a/src/Clients/PhpRedisQueue.php +++ b/src/Clients/PhpRedisQueue.php @@ -1,6 +1,6 @@ client = $redis; } else { $this->client = new Redis(); $this->client->connect($config->host, $config->port); - $this->client->auth($config->password); + if ($config->password) { + $this->client->auth($config->password); + } + $this->client->select($config->db); } }