BO 1.34+3 cron
This commit is contained in:
@@ -26,8 +26,7 @@ class NotificationJob(CronJobBase):
|
||||
print(datetime.datetime.now(), " *** END notification ")
|
||||
|
||||
|
||||
class TrialJob(CronJobBase):
|
||||
|
||||
class TrialJob(CronJobBase):
|
||||
RUN_EVERY_MINS = 60
|
||||
schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
|
||||
code = 'aitrainer_backoffice.controlling.trial_sync' # a unique code
|
||||
@@ -37,5 +36,17 @@ class TrialJob(CronJobBase):
|
||||
mautic = Mautic()
|
||||
mautic.syncTrial()
|
||||
print(datetime.datetime.now(), " *** END trial sync ")
|
||||
|
||||
|
||||
class LangJob(CronJobBase):
|
||||
RUN_EVERY_MINS = 60
|
||||
schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
|
||||
code = 'aitrainer_backoffice.controlling.Lang_sync' # a unique code
|
||||
|
||||
def do(self):
|
||||
print(datetime.datetime.now(), " *** START Lang sync ")
|
||||
mautic = Mautic()
|
||||
mautic.syncLang()
|
||||
print(datetime.datetime.now(), " *** END Lang sync ")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user