just added Linspector as prefix to job and scheduler
This commit is contained in:
parent
f2d4f48fb4
commit
4ebf0ddb7f
1 changed files with 8 additions and 8 deletions
|
|
@ -34,8 +34,8 @@ from multiprocessing import Pool
|
||||||
|
|
||||||
from linspector.config.parser import FullConfigParser
|
from linspector.config.parser import FullConfigParser
|
||||||
from linspector.core.interface import LinspectorInterface
|
from linspector.core.interface import LinspectorInterface
|
||||||
from linspector.core.job import Job
|
from linspector.core.job import LinspectorJob
|
||||||
from linspector.core.scheduler import Scheduler
|
from linspector.core.scheduler import LinspectorScheduler
|
||||||
from linspector.frontends.lish import LishFrontend
|
from linspector.frontends.lish import LishFrontend
|
||||||
from linspector.tasks.task import TaskExecutor
|
from linspector.tasks.task import TaskExecutor
|
||||||
|
|
||||||
|
|
@ -122,7 +122,7 @@ def main():
|
||||||
logger.error(msg)
|
logger.error(msg)
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
scheduler = Scheduler({"apscheduler.threadpool.core_threads": args.corethreads,
|
scheduler = LinspectorScheduler({"apscheduler.threadpool.core_threads": args.corethreads,
|
||||||
"apscheduler.threadpool.max_threads": args.threads})
|
"apscheduler.threadpool.max_threads": args.threads})
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
TaskExecutor.Instance()
|
TaskExecutor.Instance()
|
||||||
|
|
@ -154,7 +154,7 @@ def main():
|
||||||
|
|
||||||
time_delta += float(args.delay)
|
time_delta += float(args.delay)
|
||||||
new_start_date = start_date + datetime.timedelta(seconds=time_delta)
|
new_start_date = start_date + datetime.timedelta(seconds=time_delta)
|
||||||
job = Job(service,
|
job = LinspectorJob(service,
|
||||||
host,
|
host,
|
||||||
hostgroup.get_members(),
|
hostgroup.get_members(),
|
||||||
core,
|
core,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue