feat: 動作確認で発覚した不具合を修正。

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2025-05-21 16:14:27 +09:00
parent 89a57a1e04
commit aa3c3f666f
3 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,7 @@ def exec():
hdke_tbl_manager = JskultHdkeTblManager()
try:
if not hdke_tbl_manager.can_run_process():
logger.error('日次バッチ処理中日次バッチ処理中またはdump取得が正常終了していないため、日次バッチ処理を終了します。')
logger.error('日次バッチ処理中またはdump取得が正常終了していないため、日次バッチ処理を終了します。')
return constants.BATCH_EXIT_CODE_SUCCESS
except BatchOperationException as e:
logger.exception(f'日付テーブルチェック処理エラー(異常終了){e}')

View File

@ -17,7 +17,7 @@ logger = logging.getLogger()
def log_datetime_convert_tz(*arg):
"""ログに出力するタイムスタンプのロケールを変更するJST指定"""
return datetime.datetime.now(ZoneInfo(TZ)).timetuple()
return datetime.now(ZoneInfo(TZ)).timetuple()
formatter = logging.Formatter(
@ -59,9 +59,8 @@ def lambda_handler(event, context):
}
)
)
print(f'{datetime.now():%Y-%m-%d %H:%M:%S} Info I-4 StepFunctions起動レスポンス{str(response)}')
print(f'{datetime.now():%Y-%m-%d %H:%M:%S} Info I-5 駆動処理終了')
logger.info(f'I-4 StepFunctions起動レスポンス{str(response)}')
logger.info(f'I-5 駆動処理終了')
# ローカルでのデバック実行用。