fix: TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'
All checks were successful
Gitea Actions Demo / host-commands (push) Successful in 0s

This commit is contained in:
konjacpotato
2026-02-15 21:51:35 +08:00
parent 780d025e18
commit ebcfd97893
10 changed files with 0 additions and 2 deletions

View File

@ -104,8 +104,6 @@ def load_tasks(scheduler: BlockingScheduler):
logger.warning(f"Task Invalid trigger type: {trigger}") logger.warning(f"Task Invalid trigger type: {trigger}")
else: else:
logger.info(f"Task {task.task_name} already exists......") logger.info(f"Task {task.task_name} already exists......")
run_time = job.next_run_time - job.trigger.start_date
logger.info(f"Task {task.task_name} already exists, run time is {run_time}")
# 管理者任务 # 管理者任务
def manager_task(scheduler: BlockingScheduler): def manager_task(scheduler: BlockingScheduler):