Pas de schedule en mode debug
This commit is contained in:
parent
cf4f506168
commit
94b3fa1ccd
@ -579,7 +579,10 @@ def update_orphan_pure_import_events(self):
|
|||||||
tasks.delay()
|
tasks.delay()
|
||||||
|
|
||||||
|
|
||||||
app.conf.beat_schedule = {
|
if settings.DEBUG:
|
||||||
|
app.conf.beat_schedule = {}
|
||||||
|
else:
|
||||||
|
app.conf.beat_schedule = {
|
||||||
"daily_orphans_update": {
|
"daily_orphans_update": {
|
||||||
"task": "agenda_culturel.celery.update_orphan_pure_import_events",
|
"task": "agenda_culturel.celery.update_orphan_pure_import_events",
|
||||||
# Update of orphan events at 2:22 a.m.
|
# Update of orphan events at 2:22 a.m.
|
||||||
@ -604,6 +607,6 @@ app.conf.beat_schedule = {
|
|||||||
# Daily imports on Mondays at 2:22 a.m.
|
# Daily imports on Mondays at 2:22 a.m.
|
||||||
"schedule": crontab(hour=2, minute=22, day_of_week="mon"),
|
"schedule": crontab(hour=2, minute=22, day_of_week="mon"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
app.conf.timezone = "Europe/Paris"
|
app.conf.timezone = "Europe/Paris"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user