Update app/Jobs/ScheduledTaskJob.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
b22e79caec
commit
1580c0d3ad
1 changed files with 0 additions and 3 deletions
|
|
@ -164,9 +164,6 @@ public function handle(): void
|
|||
]);
|
||||
|
||||
// Only notify and throw on final failure
|
||||
if ($this->attempts() >= $this->tries) {
|
||||
$this->team?->notify(new TaskFailed($this->task, $e->getMessage()));
|
||||
}
|
||||
|
||||
// Re-throw to trigger Laravel's retry mechanism with backoff
|
||||
throw $e;
|
||||
|
|
|
|||
Loading…
Reference in a new issue