Skip to content

Commit e07097f

Browse files
authored
Merge pull request #149 from j6s/feature/execution-time
Add method to retrieve executionTime
2 parents 3dccb18 + 8290b4e commit e07097f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/GO/Job.php

+12
Original file line numberDiff line numberDiff line change
@@ -587,4 +587,16 @@ public function then(callable $fn, $runInBackground = false)
587587

588588
return $this;
589589
}
590+
591+
/**
592+
* @return Cron\CronExpression
593+
*/
594+
public function getExecutionTime()
595+
{
596+
if (! $this->executionTime) {
597+
return Cron\CronExpression::factory('* * * * *');
598+
}
599+
600+
return $this->executionTime;
601+
}
590602
}

0 commit comments

Comments
 (0)