Skip to content

Commit

Permalink
Merge pull request #26 from neighborhoods/KOJO-59-expose-number-times…
Browse files Browse the repository at this point in the history
…-retried

KOJO-59 | Expose how many times a job has been retried
  • Loading branch information
mucha55 authored Oct 18, 2018
2 parents c689370 + c42f3b6 commit ceb4fcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Api/V1/Worker/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,9 @@ public function getJobId(): int
{
return $this->_getJob()->getId();
}

public function getTimesRetried() : int
{
return $this->_getJob()->getTimesRetried();
}
}
2 changes: 2 additions & 0 deletions src/Api/V1/Worker/ServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public function getTimesCrashed(): int;

public function getJobId(): int;

public function getTimesRetried(): int;

/** @injected:configuration */
public function setServiceUpdateRetryFactory(Retry\FactoryInterface $updateRetryFactory);

Expand Down

0 comments on commit ceb4fcc

Please sign in to comment.