Skip to content

Commit

Permalink
[5.4] Job : add missing methods to the interface. (#18034)
Browse files Browse the repository at this point in the history
* Add missing methods to Job interface.

* Update Job.php
  • Loading branch information
lucasmichot authored and taylorotwell committed Feb 21, 2017
1 parent 870df57 commit 4caf238
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Illuminate/Contracts/Queue/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ public function attempts();
*/
public function failed($e);

/**
* The number of times to attempt a job.
*
* @return int|null
*/
public function maxTries();

/**
* The number of seconds the job can run.
*
* @return int|null
*/
public function timeout();

/**
* Get the name of the queued job class.
*
Expand Down

0 comments on commit 4caf238

Please sign in to comment.