From baef44668e9222876de5c709296989cb4e1f81b3 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Fri, 1 Jul 2022 18:27:16 +0300 Subject: [PATCH] =?UTF-8?q?[+]=20mq=20=D1=81=D0=BB=D0=B0=D1=81=D1=81=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/MQTasks.class.php | 13 +++++++++++++ core/lib/Core/Models/MQ.class.php | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 core/lib/Core/MQTasks.class.php diff --git a/core/lib/Core/MQTasks.class.php b/core/lib/Core/MQTasks.class.php new file mode 100644 index 0000000..fad4b6e --- /dev/null +++ b/core/lib/Core/MQTasks.class.php @@ -0,0 +1,13 @@ +DB->getItems( self::TABLE, [ 'active' => self::VALUE_Y, - 'in_progres' => self::VALUE_N, + 'in_progress' => self::VALUE_N, 'executed' => self::VALUE_N, ] ); @@ -171,7 +171,7 @@ * * @return int|null Идентификатор созданного задания */ - public function addTask(string $class, string $method, ?array $params = null): ?int + public function createTask(string $class, string $method, ?array $params = null): ?int { if (empty($params)) { $params = [];