Update jobs.py

pull/131/head
StarsL.cn 3 months ago committed by GitHub
parent f5e39299c0
commit 4b903540ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -27,7 +27,7 @@ def modjob_args(jobid,args):
Scheduler.modify_job(jobid,args=args) Scheduler.modify_job(jobid,args=args)
def addjob(job_id,job_func,job_args,job_interval): def addjob(job_id,job_func,job_args,job_interval):
Scheduler.add_job(id=job_id, func=job_func, args=job_args, trigger='interval', Scheduler.add_job(id=job_id, func=job_func, misfire_grace_time=100, args=job_args, trigger='interval',
minutes=job_interval, replace_existing=True) minutes=job_interval, replace_existing=True)
def runjob(jobid): def runjob(jobid):
Scheduler.run_job(jobid) Scheduler.run_job(jobid)

Loading…
Cancel
Save