Browse Source

Update jobs.py

pull/131/head
StarsL.cn 3 months ago committed by GitHub
parent
commit
4b903540ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      flask-consul/views/jobs.py

2
flask-consul/views/jobs.py

@ -27,7 +27,7 @@ def modjob_args(jobid,args):
Scheduler.modify_job(jobid,args=args)
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)
def runjob(jobid):
Scheduler.run_job(jobid)

Loading…
Cancel
Save