Skip to content

Commit

Permalink
Merge pull request #149 from j6s/feature/execution-time
Browse files Browse the repository at this point in the history
Add method to retrieve executionTime
  • Loading branch information
peppeocchi authored Aug 12, 2024
2 parents 3dccb18 + 8290b4e commit e07097f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/GO/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,4 +587,16 @@ public function then(callable $fn, $runInBackground = false)

return $this;
}

/**
* @return Cron\CronExpression
*/
public function getExecutionTime()
{
if (! $this->executionTime) {
return Cron\CronExpression::factory('* * * * *');
}

return $this->executionTime;
}
}

0 comments on commit e07097f

Please sign in to comment.