fix(scheduler): ensure sche_tasks dir exists to avoid import crash killing L4 cron
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user