[2026-05-18] 스케줄러 루프 예외 처리 추가 — Discord 실패 시 봇 종료 버그 수정
This commit is contained in:
@@ -437,6 +437,7 @@ async def run():
|
|||||||
while True:
|
while True:
|
||||||
now = datetime.now().strftime("%H:%M")
|
now = datetime.now().strftime("%H:%M")
|
||||||
|
|
||||||
|
try:
|
||||||
# 08:30 AI 컨텍스트 로드 + 유니버스 갱신
|
# 08:30 AI 컨텍스트 로드 + 유니버스 갱신
|
||||||
# (claude_morning이 08:15에 시작해 08:30 전에 daily_context.json 생성)
|
# (claude_morning이 08:15에 시작해 08:30 전에 daily_context.json 생성)
|
||||||
if now == "08:30":
|
if now == "08:30":
|
||||||
@@ -463,6 +464,9 @@ async def run():
|
|||||||
elif now == "15:10":
|
elif now == "15:10":
|
||||||
await bot.daily_summary()
|
await bot.daily_summary()
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
logger.error(f"스케줄러 루프 오류 ({now}): {e}", exc_info=True)
|
||||||
|
|
||||||
await asyncio.sleep(30)
|
await asyncio.sleep(30)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user