Skip to content

Commit

Permalink
Fixes queue handling for eveapi jobs (#381)
Browse files Browse the repository at this point in the history
* Don't override default value for queue in constructor and set other queue for notifications.

* Move queue comment to correct line.
  • Loading branch information
zenobio93 authored Dec 24, 2023
1 parent 1206e78 commit 4e39dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Jobs/Character/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
*/
class Notifications extends AbstractAuthCharacterJob
{
public $queue = 'notifications';

/**
* @var string
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Jobs/EsiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4e39dca

Please sign in to comment.