其他分享
首页 > 其他分享> > skipped: maximum number of running instances reached (1)

skipped: maximum number of running instances reached (1)

作者:互联网

apscheduler定时任务报错skipped: maximum number of running instances reached (1)

原因是默认max_instances最大定时任务是1个,可以通过在add_job中调max_instances增加数量。
如:

scheduler.add_job(func=add, trigger='cron',minute=3,hour='*/3',misfire_grace_time=3600, max_instances=4)

标签:skipped,max,maximum,number,running,instances,add,reached
来源: https://www.cnblogs.com/taozhengquan/p/15424597.html