Skip to content

Commit

Permalink
Update data refreshes to run on Mondays UTC 0
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Sep 21, 2023
1 parent 70336cd commit 17c5c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions catalog/DAGs.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ The following are DAGs grouped by their primary tag:

| DAG ID | Schedule Interval |
| ------------------------------------------------------------- | ----------------- |
| [`audio_data_refresh`](#audio_data_refresh) | `0 0 * * 2` |
| [`audio_data_refresh`](#audio_data_refresh) | `0 0 * * 1` |
| [`create_filtered_audio_index`](#create_filtered_audio_index) | `None` |
| [`create_filtered_image_index`](#create_filtered_image_index) | `None` |
| [`image_data_refresh`](#image_data_refresh) | `0 0 * * 2` |
| [`image_data_refresh`](#image_data_refresh) | `0 0 * * 1` |

## Database

Expand Down
2 changes: 1 addition & 1 deletion catalog/dags/data_refresh/data_refresh_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DataRefresh:
dag_id: str = field(init=False)
media_type: str
start_date: datetime = datetime(2020, 1, 1)
schedule: str | None = "0 0 * * 2"
schedule: str | None = "0 0 * * 1" # Mondays 00:00 UTC
default_args: dict | None = field(default_factory=dict)
data_refresh_timeout: timedelta = timedelta(days=1)
refresh_metrics_timeout: timedelta = timedelta(hours=1)
Expand Down

0 comments on commit 17c5c8b

Please sign in to comment.