Skip to content

Commit

Permalink
Add exit code to horizon:forget command (#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed Jan 16, 2024
1 parent b348621 commit 151f7fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/ForgetFailedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ForgetFailedCommand extends Command
/**
* Execute the console command.
*
* @return void
* @return int|null
*/
public function handle(JobRepository $repository)
{
Expand All @@ -34,6 +34,8 @@ public function handle(JobRepository $repository)
$this->info('Failed job deleted successfully!');
} else {
$this->error('No failed job matches the given ID.');

return 1;
}
}
}

0 comments on commit 151f7fc

Please sign in to comment.