worker service 매물 등록 및 redis 다운시 처리
This commit is contained in:
@@ -53,9 +53,17 @@ class TypeSHandler
|
||||
|
||||
// 2. Result 데이터 저장
|
||||
$resultData = $this->parameterMapper->mapResult($rcptSq, $rawData);
|
||||
write_custom_log("Result Insert 데이터: " . json_encode($resultData, JSON_UNESCAPED_UNICODE), 'INFO', 'service');
|
||||
|
||||
if (!$this->resultModel->insert($resultData)) {
|
||||
throw new Exception("Result Insert 실패");
|
||||
$lastQuery = (string)$this->resultModel->getLastQuery();
|
||||
$errors = json_encode($this->resultModel->errors());
|
||||
write_custom_log("Result Insert 실패 | SQL: $lastQuery | Errors: $errors", 'ERROR', 'service');
|
||||
throw new Exception("Result Insert 실패: $errors");
|
||||
}
|
||||
|
||||
$insertedResultSql = (string)$this->resultModel->getLastQuery();
|
||||
write_custom_log("Result Insert 성공 | SQL: $insertedResultSql", 'INFO', 'service');
|
||||
CLI::write(CLI::color('✅ Result 저장 성공', 'blue'));
|
||||
|
||||
// 3. 트랜잭션 커밋
|
||||
|
||||
Reference in New Issue
Block a user