Skip to content

Commit

Permalink
fix: args not passed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jan 5, 2024
1 parent ed487da commit 6995f1b
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/Console/WorkerArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,25 @@ public function args(): array
'--stop-when-empty',
];

$args['--tries'] = $this->settings->get('blomstra-database-queue.retries');
$args['--timeout'] = $this->settings->get('blomstra-database-queue.timeout');
$args['--rest'] = $this->settings->get('blomstra-database-queue.rest');
$args['--memory'] = $this->settings->get('blomstra-database-queue.memory');
$args['--backoff'] = $this->settings->get('blomstra-database-queue.backoff');
if ($retries = $this->settings->get('blomstra-database-queue.retries')) {
$args['--tries'] = $retries;
}

if ($memory = $this->settings->get('blomstra-database-queue.memory')) {
$args['--memory'] = $memory;
}

if ($timeout = $this->settings->get('blomstra-database-queue.timeout')) {
$args['--timeout'] = $timeout;
}

if ($rest = $this->settings->get('blomstra-database-queue.rest')) {
$args['--rest'] = $rest;
}

if ($backoff = $this->settings->get('blomstra-database-queue.backoff')) {
$args['--backoff'] = $backoff;
}

return $args;
}
Expand Down

0 comments on commit 6995f1b

Please sign in to comment.