
知行合一1 分钟阅读
APscheduler 运行定时任务报错
django_apscheduler_djangojobexecution 记录表中报错'Run time of job "%s" was missed by %s

报错定位run_job

报错的原因是job.misfire_grace_time 这时间又是创建任务是添加的

源码描述: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)
这里没有添加时是传的默认值
检查misfire_grace_time参数的值。这个参数控制任务运行超时后的容忍时间。将它设置为None可以让任务无论运行多晚都执行
有关使用上的问题,欢迎您在底部评论区留言,一起交流~
读者评论
评论会同步写入该文在 Notion 中的页面底部(与正文同页,便于管理)。
暂无评论,欢迎抢沙发。