This commit is contained in:
jxxghp 2023-09-24 19:48:03 +08:00
parent 76f1de42a8
commit a7b51d9fcc

View File

@ -230,14 +230,15 @@ class Scheduler(metaclass=Singleton):
added.append(job.name)
else:
continue
if not self._jobs.get(job.id):
job_id = job.id.split("|")[0]
if not self._jobs.get(job_id):
continue
# 任务状态
status = "正在运行" if self._jobs[job.id].get("running") else "等待"
status = "正在运行" if self._jobs[job_id].get("running") else "等待"
# 下次运行时间
next_run = TimerUtils.time_difference(job.next_run_time)
schedulers.append(schemas.ScheduleInfo(
id=job.id,
id=job_id,
name=job.name,
status=status,
next_run=next_run