fix #1561
This commit is contained in:
parent
49a82d7a48
commit
ab6577f752
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user