mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: Remove last uses of IJob::execute method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
e78e27187a
commit
b105603fd1
3 changed files with 4 additions and 4 deletions
|
|
@ -155,7 +155,7 @@ class GetSharedSecretTest extends TestCase {
|
|||
$this->jobList->expects($this->never())->method('add');
|
||||
}
|
||||
|
||||
$getSharedSecret->execute($this->jobList);
|
||||
$getSharedSecret->start($this->jobList);
|
||||
}
|
||||
|
||||
public function dataTestExecute() {
|
||||
|
|
|
|||
4
cron.php
4
cron.php
|
|
@ -154,7 +154,7 @@ try {
|
|||
$memoryBefore = memory_get_usage();
|
||||
$memoryPeakBefore = memory_get_peak_usage();
|
||||
|
||||
$job->execute($jobList, $logger);
|
||||
$job->start($jobList);
|
||||
|
||||
$memoryAfter = memory_get_usage();
|
||||
$memoryPeakAfter = memory_get_peak_usage();
|
||||
|
|
@ -189,7 +189,7 @@ try {
|
|||
$job = $jobList->getNext();
|
||||
if ($job != null) {
|
||||
$logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']);
|
||||
$job->execute($jobList, $logger);
|
||||
$job->start($jobList);
|
||||
$jobList->setLastJob($job);
|
||||
}
|
||||
OC_JSON::success();
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class CronBusTest extends AsyncBusTest {
|
|||
protected function runJobs() {
|
||||
$jobs = $this->jobList->getAll();
|
||||
foreach ($jobs as $job) {
|
||||
$job->execute($this->jobList);
|
||||
$job->start($this->jobList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue