Skip to content

Commit 418762f

Browse files
committed
Cron timer in USA AM via UTC
1 parent 00953ec commit 418762f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mavedb/worker/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
map_variants_for_score_set,
2424
refresh_published_variants_view,
2525
]
26+
# In UTC time. Depending on daylight savings time, this will bounce around by an hour but should always be very early in the morning
27+
# for all of the USA.
2628
BACKGROUND_CRONJOBS: list[CronJob] = [
27-
cron(refresh_materialized_views, name="refresh_all_materialized_views", hour=3, minute=0)
29+
cron(refresh_materialized_views, name="refresh_all_materialized_views", hour=20, minute=0)
2830
]
2931

3032
REDIS_IP = os.getenv("REDIS_IP") or "localhost"

0 commit comments

Comments
 (0)