mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 18:16:36 -04:00
fix(TaskProcessingWorker): Adjust config key name
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
f0a3b335e6
commit
cbaf5fa99f
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ class TaskProcessingWorkerIsRunning implements ISetupCheck {
|
|||
)
|
||||
);
|
||||
}
|
||||
$lastIteration = (int)$this->appConfig->getValueString('core', 'taskprocessing_worker_last_iteration', lazy: true);
|
||||
$lastIteration = (int)$this->appConfig->getValueString('core', 'ai.taskprocessing_worker_last_iteration', lazy: true);
|
||||
if ($lastIteration > $this->timeFactory->now()->getTimestamp() - (60 * self::IS_RUNNING_IN_LAST_X_MINUTES)) {
|
||||
return SetupResult::success(
|
||||
$this->l10n->n('The Task Processing worker has run in the last minute.', 'The Task Processing worker has run in the last %n minutes.', self::IS_RUNNING_IN_LAST_X_MINUTES)
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class WorkerCommand extends Base {
|
|||
}
|
||||
|
||||
if ($lastConfigStorageTime < $this->timeFactory->now()->getTimestamp() - 60) {
|
||||
$this->appConfig->setValueString('core', 'taskprocessing_worker_last_iteration', (string)$this->timeFactory->now()->getTimestamp(), lazy: true);
|
||||
$this->appConfig->setValueString('core', 'ai.taskprocessing_worker_last_iteration', (string)$this->timeFactory->now()->getTimestamp(), lazy: true);
|
||||
$lastConfigStorageTime = $this->timeFactory->now()->getTimestamp();
|
||||
}
|
||||
$processedTask = $this->processNextTask($output, $taskTypes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue