Actualiser mycaldav/cron.py
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m36s
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m36s
change cron run time to every 120min
This commit is contained in:
@@ -5,10 +5,10 @@ import django
|
|||||||
|
|
||||||
class InitTaskSync(CronJobBase):
|
class InitTaskSync(CronJobBase):
|
||||||
RUN_AT_TIMES = ['07:00', '19:00']
|
RUN_AT_TIMES = ['07:00', '19:00']
|
||||||
RUN_EVERY_MIN = 1
|
RUN_EVERY_MIN = 120
|
||||||
|
|
||||||
schedule = Schedule(run_at_times=RUN_AT_TIMES,)
|
#schedule = Schedule(run_at_times=RUN_AT_TIMES,)
|
||||||
#schedule = Schedule(run_every_mins=RUN_EVERY_MIN,)
|
schedule = Schedule(run_every_mins=RUN_EVERY_MIN,)
|
||||||
code = 'reskreen.init_sync_task' # Un code unique pour votre tâche cron
|
code = 'reskreen.init_sync_task' # Un code unique pour votre tâche cron
|
||||||
|
|
||||||
def do(self):
|
def do(self):
|
||||||
|
Reference in New Issue
Block a user