Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit 9905573

Browse files
committed
Only delay the first time
1 parent 9dd4eed commit 9905573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/AsyncJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function fire()
3838
$payload = $this->parsePayload($this->getRawBody());
3939

4040
// If we have to wait, sleep until our time has come
41-
if ($this->job->delay) {
41+
if ($this->job->delay && $this->attempts() == 0) {
4242
$this->job->status = Job::STATUS_WAITING;
4343
$this->job->save();
4444
sleep($this->job->delay);

0 commit comments

Comments
 (0)