1、错过了定时任务执行时间后,任务未执行
Run time of job "xxxxxxx (trigger: interval[1:00:00], next run at: 2023-12-12 13:15:00 CST)" was missed by 0:53:34.940544
这个问题在windows平台pycharm运行时出现了,在linux平台后台运行时未出现。 解决方法:设置misfire_grace_time参数,int类型,单位是秒
:param int misfire_grace_time: seconds after the designated runtime that the job is still
allowed to be run (or ``None`` to allow the job to run no matter how late it is)
2、设置定时任务首次运行时间
可传入next_run_time,类型为datetime,如果不传入则默认为None,任务会被设为暂停状态
:param datetime next_run_time: when to first run the job, regardless of the trigger (pass
``None`` to add the job as paused)