do scheduling first, then start the scheduler... makes start up a lot faster
This commit is contained in:
parent
0e10c20e31
commit
c84b17107a
1 changed files with 3 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ def main():
|
|||
|
||||
scheduler = LinspectorScheduler({"apscheduler.threadpool.core_threads": args.corethreads,
|
||||
"apscheduler.threadpool.max_threads": args.threads})
|
||||
scheduler.start()
|
||||
|
||||
TaskExecutor.Instance()
|
||||
|
||||
job_count = 0
|
||||
|
|
@ -158,6 +158,8 @@ def main():
|
|||
job.set_job(scheduler_job)
|
||||
jobs.append(job)
|
||||
|
||||
scheduler.start()
|
||||
|
||||
print("\nScheduled " + str(job_count) + " jobs")
|
||||
|
||||
interface = LinspectorInterface(jobs, scheduler, lin_conf, root_logger, __version__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue