Update app/Jobs/ScheduledTaskJob.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Andras Bacsai
2025-11-10 11:41:50 +01:00
committed by GitHub
parent b22e79caec
commit 1580c0d3ad

View File

@@ -164,9 +164,6 @@ class ScheduledTaskJob implements ShouldQueue
]);
// 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;