Merge pull request #26308 from nextcloud/enhancement/timed-job-interval-description
Document that the TimedJob interval is in seconds
This commit is contained in:
commit
a75f0e62fa
|
@ -42,10 +42,12 @@ abstract class TimedJob extends Job {
|
||||||
/**
|
/**
|
||||||
* set the interval for the job
|
* set the interval for the job
|
||||||
*
|
*
|
||||||
|
* @param int $seconds the time to pass between two runs of the same job in seconds
|
||||||
|
*
|
||||||
* @since 15.0.0
|
* @since 15.0.0
|
||||||
*/
|
*/
|
||||||
public function setInterval(int $interval) {
|
public function setInterval(int $seconds) {
|
||||||
$this->interval = $interval;
|
$this->interval = $seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue