|
|
|
@ -172,7 +172,8 @@ try {
|
|
|
|
|
$memoryBefore = memory_get_usage();
|
|
|
|
|
$memoryPeakBefore = memory_get_peak_usage();
|
|
|
|
|
|
|
|
|
|
$job->start($jobList);
|
|
|
|
|
/** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */
|
|
|
|
|
$job->execute($jobList);
|
|
|
|
|
|
|
|
|
|
$memoryAfter = memory_get_usage();
|
|
|
|
|
$memoryPeakAfter = memory_get_peak_usage();
|
|
|
|
@ -207,7 +208,8 @@ try {
|
|
|
|
|
$job = $jobList->getNext();
|
|
|
|
|
if ($job != null) {
|
|
|
|
|
$logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']);
|
|
|
|
|
$job->start($jobList);
|
|
|
|
|
/** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */
|
|
|
|
|
$job->execute($jobList);
|
|
|
|
|
$jobList->setLastJob($job);
|
|
|
|
|
}
|
|
|
|
|
OC_JSON::success();
|
|
|
|
|