Skip to content

Commit 151f7fc

Browse files
authored
Add exit code to horizon:forget command (#1370)
1 parent b348621 commit 151f7fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Console/ForgetFailedCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ForgetFailedCommand extends Command
2424
/**
2525
* Execute the console command.
2626
*
27-
* @return void
27+
* @return int|null
2828
*/
2929
public function handle(JobRepository $repository)
3030
{
@@ -34,6 +34,8 @@ public function handle(JobRepository $repository)
3434
$this->info('Failed job deleted successfully!');
3535
} else {
3636
$this->error('No failed job matches the given ID.');
37+
38+
return 1;
3739
}
3840
}
3941
}

0 commit comments

Comments
 (0)