1
0
mirror of synced 2024-11-21 21:06:09 +03:00

ref #90439 Обработка исключений агента orderAgent (#300)

This commit is contained in:
Kocmonavtik 2023-06-22 15:46:25 +03:00 committed by GitHub
parent 7a2ab16cf3
commit 17e3b00dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 9 deletions

View File

@ -1,3 +1,6 @@
## 2023-06-22 v.6.3.15
- Исправлено зависание агента выгрузки заказов
## 2023-06-12 v.6.3.14
- Исправлена ошибка при изменении торгового предложения в товаре

View File

@ -220,6 +220,8 @@ class RCrmActions
* Agent function
*
* @return self name
*
* @throws \Throwable
*/
public static function orderAgent()
{
@ -227,12 +229,22 @@ class RCrmActions
define('NO_AGENT_CHECK', true);
}
$service = ManagerService::getInstance();
$service->synchronizeManagers();
try {
$service = ManagerService::getInstance();
$service->synchronizeManagers();
RetailCrmHistory::customerHistory();
RetailCrmHistory::orderHistory();
self::uploadOrdersAgent();
RetailCrmHistory::customerHistory();
RetailCrmHistory::orderHistory();
self::uploadOrdersAgent();
} catch (\Throwable $exception) {
RCrmActions::eventLog(
'RCrmActions',
'orderAgent',
$exception->getMessage() . PHP_EOL .
'File: ' . $exception->getFile() . PHP_EOL .
'Line: ' . $exception->getLine() . PHP_EOL
);
}
return 'RCrmActions::orderAgent();';
}

View File

@ -1 +1 @@
- Исправлена ошибка при изменении торгового предложения в товаре
- Исправлено зависание агента выгрузки заказов

View File

@ -1082,7 +1082,10 @@ class intaro_retailcrm extends CModule
$dateAgent->add($intAgent);
CAgent::AddAgent(
'RCrmActions::orderAgent();', $this->MODULE_ID, 'N', 600, // interval - 10 mins
'RCrmActions::orderAgent();',
$this->MODULE_ID,
'N',
600, // interval - 10 mins
$dateAgent->format('d.m.Y H:i:s'), // date of first check
'Y', // agent is active
$dateAgent->format('d.m.Y H:i:s'), // date of first start

View File

@ -1,6 +1,6 @@
<?php
$arModuleVersion = [
'VERSION' => '6.3.14',
'VERSION_DATE' => '2023-06-12 20:00:00'
'VERSION' => '6.3.15',
'VERSION_DATE' => '2023-06-22 15:30:00'
];