load defaults for schedule builder at startup

This commit is contained in:
simon 2023-02-02 13:06:00 +07:00
parent f18e2ce599
commit 2d942fe9b5
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 2 additions and 1 deletions

View File

@ -265,6 +265,7 @@ class ScheduleBuilder:
def build_schedule(self):
"""build schedule dict as expected by app.conf.beat_schedule"""
AppConfig().load_new_defaults()
schedule_dict = {}
for schedule_item in self.SCHEDULES:

View File

@ -312,5 +312,5 @@ def version_check():
ReleaseVersion().check()
# start the schedule here
# start schedule here
app.conf.beat_schedule = ScheduleBuilder().build_schedule()