Selaa lähdekoodia

Merge pull request #26308 from nextcloud/enhancement/timed-job-interval-description

Document that the TimedJob interval is in seconds
tags/v22.0.0beta1
Roeland Jago Douma 3 vuotta sitten
vanhempi
commit
a75f0e62fa
No account linked to committer's email address
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4
    2
      lib/public/BackgroundJob/TimedJob.php

+ 4
- 2
lib/public/BackgroundJob/TimedJob.php Näytä tiedosto

@@ -42,10 +42,12 @@ abstract class TimedJob extends 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
*/
public function setInterval(int $interval) {
$this->interval = $interval;
public function setInterval(int $seconds) {
$this->interval = $seconds;
}

/**

Loading…
Peruuta
Tallenna