File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 65
65
logger = logging .getLogger (__name__ )
66
66
67
67
68
- DATA_REFRESH_POOL = " data_refresh"
68
+ DATA_REFRESH_POOL = os . getenv ( "DATA_REFRESH_POOL" , " data_refresh")
69
69
70
70
71
71
def create_data_refresh_task_group (
Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ OPENVERSE_BUCKET=openverse-storage
106
106
# Seconds to wait before poking for availability of the data refresh pool when running a data_refresh
107
107
# DAG. Used to shorten the time for testing purposes.
108
108
DATA_REFRESH_POKE_INTERVAL=5
109
+ # The pool to use for the data refresh tasks. Defaults to `data_refresh` in production but
110
+ # we override this locally to prevent having to frequently recreate it.
111
+ DATA_REFRESH_POOL=default_pool
109
112
# Number of Retries if DAG task fails to run
110
113
DEFAULT_RETRY_COUNT = 2
111
114
# Whether to enable catchup for dated DAGs, allowing automatic backfill.
You can’t perform that action at this time.
0 commit comments