From 88dd1b762a7b05077f2f6b7f1e1a97b11be696ec Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 2 Jul 2025 14:26:54 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D0=B5=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D1=80=D0=B0?= =?utf8?q?=D0=B1=D0=BE=D1=82=D1=8B=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 6 ++++-- erp24/controllers/CategoryPlanController.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index f33a37a2..4561c5a0 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -1785,7 +1785,8 @@ class CronController extends Controller } 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'; @@ -1803,7 +1804,8 @@ class CronController extends Controller 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']; diff --git a/erp24/controllers/CategoryPlanController.php b/erp24/controllers/CategoryPlanController.php index 65492e80..3fed6dbc 100644 --- a/erp24/controllers/CategoryPlanController.php +++ b/erp24/controllers/CategoryPlanController.php @@ -645,7 +645,7 @@ class CategoryPlanController extends Controller { 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, -- 2.39.5