From 4e39dca08cc2260621a25bc889585f23529bcda3 Mon Sep 17 00:00:00 2001 From: Christian Hellmund Date: Sun, 24 Dec 2023 01:48:55 +0100 Subject: [PATCH] Fixes queue handling for eveapi jobs (#381) * Don't override default value for queue in constructor and set other queue for notifications. * Move queue comment to correct line. --- src/Jobs/Character/Notifications.php | 2 ++ src/Jobs/EsiBase.php | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Jobs/Character/Notifications.php b/src/Jobs/Character/Notifications.php index 22b93629..1ef91d98 100644 --- a/src/Jobs/Character/Notifications.php +++ b/src/Jobs/Character/Notifications.php @@ -33,6 +33,8 @@ */ class Notifications extends AbstractAuthCharacterJob { + public $queue = 'notifications'; + /** * @var string */ diff --git a/src/Jobs/EsiBase.php b/src/Jobs/EsiBase.php index 40dda1f7..a4a18ffe 100644 --- a/src/Jobs/EsiBase.php +++ b/src/Jobs/EsiBase.php @@ -73,7 +73,7 @@ abstract class EsiBase extends AbstractJob /** * @var string By default, queue all ESI jobs on public queue. */ - public $queue = 'public'; + public $queue = 'public'; // By default, queue all ESI jobs on public queue. /** * @var int By default, retry all ESI jobs 3 times. @@ -154,9 +154,6 @@ abstract class EsiBase extends AbstractJob */ public function __construct() { - // By default, queue all ESI jobs on public queue. - $this->queue = 'public'; - // Attach an ESI Client. $this->esi = app()->make(EsiClient::class); }