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

Commit

Permalink
Update AsyncJob.php
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Dec 18, 2017
1 parent a1d7ed9 commit ddbcf94
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/Jobs/AsyncJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,6 @@ public function getRawBody()
return $this->job->payload;
}

/**
* Release the job back into the queue.
*
* @param int $delay
* @return void
*/
public function release($delay = 0)
{
// Update the Job status
$this->job->status = Job::STATUS_OPEN;
$this->job->save();

// Wait for the delay
if ($delay) {
sleep($this->getSeconds($delay));
}

// Fire again
$this->fire();
}

/**
* Get the number of times the job has been attempted.
*
Expand Down

0 comments on commit ddbcf94

Please sign in to comment.