fix(scheduler): ensure sche_tasks dir exists to avoid import crash killing L4 cron

This commit is contained in:
Liang Jiaqing
2026-06-05 23:23:41 +08:00
parent 529f3226e6
commit 04759de0ba
+1 -1
View File
@@ -16,7 +16,7 @@ TASKS = os.path.join(_dir, '../sche_tasks')
DONE = os.path.join(_dir, '../sche_tasks/done')
_LOG = os.path.join(_dir, '../sche_tasks/scheduler.log')
# --- 日志 ---
os.makedirs(DONE, exist_ok=True)
_logger = logging.getLogger('scheduler')
if not _logger.handlers:
_logger.setLevel(logging.INFO)