fix(TaskProcessingWorker): Adjust config key name

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2026-04-29 10:11:25 +02:00
parent f0a3b335e6
commit cbaf5fa99f
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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);