Skip to content

Commit

Permalink
- added an implementation of the Isolatable interface
Browse files Browse the repository at this point in the history
- added isolatableId
  • Loading branch information
rybakihor committed Aug 8, 2023
1 parent 5d0c695 commit dd4b6f5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Illuminate/Queue/Console/RetryBatchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

use Illuminate\Bus\BatchRepository;
use Illuminate\Console\Command;
use Illuminate\Contracts\Console\Isolatable;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'queue:retry-batch')]
class RetryBatchCommand extends Command
class RetryBatchCommand extends Command implements Isolatable
{
/**
* The console command signature.
Expand Down Expand Up @@ -50,4 +51,14 @@ public function handle()

$this->newLine();
}

/**
* Get the custom mutex name for an isolated command.
*
* @return string
*/
public function isolatableId()
{
return $this->argument('id');
}
}

0 comments on commit dd4b6f5

Please sign in to comment.