apscheduler定时任务报错skipped: maximum number of running instances reached (1)
skipped: maximum number of running instances reached (1)
原因是默认max_instances最大定时任务是1个,可以通过在add_job中调max_instances增加数量。 如:
max_instances
scheduler.add_job(func=add, trigger='cron',minute=3,hour='*/3',misfire_grace_time=3600, max_instances=4)