diff --git a/ietf/utils/management/commands/periodic_tasks.py b/ietf/utils/management/commands/periodic_tasks.py index 14a21fe964..e359382839 100644 --- a/ietf/utils/management/commands/periodic_tasks.py +++ b/ietf/utils/management/commands/periodic_tasks.py @@ -12,6 +12,7 @@ "day_of_month": "*", "month_of_year": "*", "day_of_week": "0", + "timezone": "America/Los_Angeles", }, "daily": { "minute": "5", @@ -19,6 +20,7 @@ "day_of_month": "*", "month_of_year": "*", "day_of_week": "*", + "timezone": "America/Los_Angeles", }, "hourly": { "minute": "5", @@ -34,6 +36,14 @@ "month_of_year": "*", "day_of_week": "*", }, + "every_15m_except_midnight": { + "minute": "*/15", + "hour": "1-23", + "day_of_month": "*", + "month_of_year": "*", + "day_of_week": "*", + "timezone": "America/Los_Angeles", + }, } @@ -79,7 +89,7 @@ def create_default_tasks(self): kwargs=json.dumps(dict(full_index=False)), defaults=dict( enabled=False, - crontab=self.crontabs["every_15m"], + crontab=self.crontabs["every_15m_except_midnight"], # don't collide with full sync description=( "Reparse the last _year_ of RFC index entries until " "https://github.com/ietf-tools/datatracker/issues/3734 is addressed. " @@ -143,7 +153,7 @@ def create_default_tasks(self): PeriodicTask.objects.get_or_create( name="Sync with IANA protocols page", - task="ietf.sync.tasks.iana_changes_update_task", + task="ietf.sync.tasks.iana_protocols_update_task", defaults=dict( enabled=False, crontab=self.crontabs["hourly"],