Skip to content

Commit c0f506c

Browse files
committed
Fix incorrect crontab duration
1 parent 0adf81c commit c0f506c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/unit/packaging/test_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ def key_factory(keystring, iterate_on=None):
118118
assert config.add_periodic_task.calls == [
119119
pretend.call(crontab(minute="*/5"), update_description_html),
120120
pretend.call(crontab(minute=0, hour=3), compute_trending),
121-
pretend.call(crontab(minute="*/60"), sync_bigquery_release_files),
121+
pretend.call(crontab(minute="0"), sync_bigquery_release_files),
122122
]
123123
elif with_bq_sync:
124124
assert config.add_periodic_task.calls == [
125125
pretend.call(crontab(minute="*/5"), update_description_html),
126-
pretend.call(crontab(minute="*/60"), sync_bigquery_release_files),
126+
pretend.call(crontab(minute="0"), sync_bigquery_release_files),
127127
]
128128
elif with_trending:
129129
assert config.add_periodic_task.calls == [

warehouse/packaging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ def includeme(config):
101101
config.add_periodic_task(crontab(minute=0, hour=3), compute_trending)
102102

103103
if config.get_settings().get("warehouse.release_files_table"):
104-
config.add_periodic_task(crontab(minute="*/60"), sync_bigquery_release_files)
104+
config.add_periodic_task(crontab(minute="0"), sync_bigquery_release_files)

0 commit comments

Comments
 (0)