This commit is contained in:
jxxghp 2024-03-09 17:12:21 +08:00
parent 49a82d7a48
commit ab6577f752

View File

@ -278,7 +278,7 @@ class Scheduler(metaclass=Singleton):
kwargs = job.get("kwargs") or {} kwargs = job.get("kwargs") or {}
job["func"](*args, **kwargs) job["func"](*args, **kwargs)
except Exception as e: except Exception as e:
logger.error(f"定时任务 {job_id} 执行失败:{str(e)}") logger.error(f"定时任务 {job_id} 执行失败:{str(e)} - {traceback.format_exc()}")
# 运行结束 # 运行结束
with self._lock: with self._lock:
try: try: