wuhuuuuu
This commit is contained in:
parent
16dc159ec4
commit
098796b7ab
1 changed files with 2 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ def main():
|
|||
exit()
|
||||
|
||||
scheduler = LinspectorScheduler({"apscheduler.threadpool.core_threads": args.corethreads,
|
||||
"apscheduler.threadpool.max_threads": args.threads})
|
||||
"apscheduler.threadpool.max_threads": args.threads})
|
||||
|
||||
TaskExecutor.Instance()
|
||||
|
||||
|
|
@ -152,6 +152,7 @@ def main():
|
|||
hostgroup.get_members(),
|
||||
core,
|
||||
hostgroup)
|
||||
|
||||
scheduler_job = period.createJob(scheduler, job, handle_job, start_date=new_start_date)
|
||||
scheduler_job.misfire_grace_time = 2
|
||||
if scheduler_job is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue