fixed params in periods, added handle Job stub
This commit is contained in:
parent
b4641b15e1
commit
be1d712573
4 changed files with 10 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class IntervalPeriod(Period):
|
|||
self.comment = comment # comment
|
||||
|
||||
def createJob(self, scheduler, jobInfo, func):
|
||||
return scheduler.add_interval_job(func, self.weeks, self.hours, self.minutes, self.seconds, self.start_date, [jobInfo])
|
||||
return scheduler.add_interval_job(func, weeks=self.weeks, hours=self.hours, minutes=self.minutes, seconds=self.seconds, start_date=self.start_date, args=[jobInfo])
|
||||
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@ class JobInfo:
|
|||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def setLogger(self, log):
|
||||
self.log = log
|
||||
|
||||
def handleCall(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue