Skip to content

Commit

Permalink
Using UUID when available
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdalmolin committed Apr 27, 2021
1 parent 91c5c75 commit 0945490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/BatchRetryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ public function handle()
protected function retry($failedJob)
{
if ($this->option('dry-run')) {
$this->comment('[DRY RUN] Retrying job with ID ' . $failedJob->id);
$this->comment('[DRY RUN] Retrying job with ID ' . $failedJob->uuid ?? $failedJob->id);
return;
}

$this->call('queue:retry', ['id' => $failedJob->id]);
$this->call('queue:retry', ['id' => $failedJob->uuid ?? $failedJob->id]);
}
}

0 comments on commit 0945490

Please sign in to comment.