fixed typo bug silently cought by apscheduler, added notes
This commit is contained in:
parent
f7c5cd65cc
commit
ea8eeaf8e5
3 changed files with 12 additions and 6 deletions
|
|
@ -66,7 +66,7 @@ class DatePeriod(Period):
|
|||
return ret
|
||||
|
||||
def createJob(self, scheduler, jobInfo, func):
|
||||
return scheduler.add_date_job(func, self.date, [jobInfo])
|
||||
return scheduler.add_date_job(func, self.date, jobInfo)
|
||||
|
||||
|
||||
def parsePeriodList(periodlist, log):
|
||||
|
|
|
|||
|
|
@ -34,9 +34,12 @@ class JobInfo:
|
|||
return nextExecution
|
||||
|
||||
def handleCall(self):
|
||||
print "calling command " + str(service.command)
|
||||
cmd = Command(service.command)
|
||||
self.log.d("executing command: " + str(command))
|
||||
cmd.call()
|
||||
return cmd
|
||||
print "about to call command " + str(self.service.command)
|
||||
#must find real service command stored in hosts...
|
||||
#but because of error, mentioned in NOTES,ruff, there is no ping i.e.
|
||||
|
||||
#cmd = Command(service.command)
|
||||
#self.log.d("executing command: " + str(command))
|
||||
#cmd.call()
|
||||
#return cmd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue