Just an alphabetical order fix in args in job_function.
This commit is contained in:
parent
a2fe8e8196
commit
2d26fb54f0
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ from apscheduler.jobstores.memory import MemoryJobStore
|
||||||
from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor
|
from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor
|
||||||
|
|
||||||
|
|
||||||
def job_function(monitor, log):
|
def job_function(log, monitor):
|
||||||
try:
|
try:
|
||||||
log('debug', 'executing job_function for monitor: ' + monitor.get_identifier())
|
log('debug', 'executing job_function for monitor: ' + monitor.get_identifier())
|
||||||
monitor.handle_call()
|
monitor.handle_call()
|
||||||
|
|
@ -104,7 +104,7 @@ class Linspector:
|
||||||
scheduler_job = scheduler['linspector'].add_job(job_function, 'interval',
|
scheduler_job = scheduler['linspector'].add_job(job_function, 'interval',
|
||||||
start_date=new_start_date,
|
start_date=new_start_date,
|
||||||
seconds=interval, timezone=timezone,
|
seconds=interval, timezone=timezone,
|
||||||
args=[monitors.get(monitor), log])
|
args=[log, monitors.get(monitor)])
|
||||||
|
|
||||||
monitor_job.set_job(scheduler_job)
|
monitor_job.set_job(scheduler_job)
|
||||||
self.__jobs.append(monitor_job)
|
self.__jobs.append(monitor_job)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue