}
if (isset($task['status']) && $task['status'] === 'pending') {
$task['status'] = 'running';
- $cache->set($cacheKey, $task);
+ //$ok = $cache->set($cacheKey, $task);
+
$log = new ScriptLauncherLog();
$log->source = 'CronController';
Yii::error(json_encode($log->getErrors(), JSON_UNESCAPED_UNICODE));
LogService::apiErrorLog(json_encode(["error_id" => 8, "error" => $log->getErrors()], JSON_UNESCAPED_UNICODE));
}
- //$cache->delete($cacheKey);
+ $ok = $cache->delete($cacheKey);
+
$service = new AutoPlannogrammaService();
$year = (int)$task['year'];
$month = (int)$task['month'];
return $this->asJson(['status' => 'not_found']);
}
}
- Yii::$app->cache->delete('apRecalculateTask');
+ //Yii::$app->cache->delete('apRecalculateTask');
return $this->asJson([
'status' => $task['status'],
'progress' => $task['progress'] ?? 0,