Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

Commit ddbcf94

Browse files
authored
Update AsyncJob.php
1 parent a1d7ed9 commit ddbcf94

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Diff for: src/Jobs/AsyncJob.php

-21
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,6 @@ public function getRawBody()
6969
return $this->job->payload;
7070
}
7171

72-
/**
73-
* Release the job back into the queue.
74-
*
75-
* @param int $delay
76-
* @return void
77-
*/
78-
public function release($delay = 0)
79-
{
80-
// Update the Job status
81-
$this->job->status = Job::STATUS_OPEN;
82-
$this->job->save();
83-
84-
// Wait for the delay
85-
if ($delay) {
86-
sleep($this->getSeconds($delay));
87-
}
88-
89-
// Fire again
90-
$this->fire();
91-
}
92-
9372
/**
9473
* Get the number of times the job has been attempted.
9574
*

0 commit comments

Comments
 (0)