Skip to content

Commit

Permalink
Determine data refresh pool by environment variable with default (#2352)
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound authored Jun 14, 2023
1 parent c20f275 commit 41b0cdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/dags/data_refresh/data_refresh_task_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
logger = logging.getLogger(__name__)


DATA_REFRESH_POOL = "data_refresh"
DATA_REFRESH_POOL = os.getenv("DATA_REFRESH_POOL", "data_refresh")


def create_data_refresh_task_group(
Expand Down
3 changes: 3 additions & 0 deletions catalog/env.template
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ OPENVERSE_BUCKET=openverse-storage
# Seconds to wait before poking for availability of the data refresh pool when running a data_refresh
# DAG. Used to shorten the time for testing purposes.
DATA_REFRESH_POKE_INTERVAL=5
# The pool to use for the data refresh tasks. Defaults to `data_refresh` in production but
# we override this locally to prevent having to frequently recreate it.
DATA_REFRESH_POOL=default_pool
# Number of Retries if DAG task fails to run
DEFAULT_RETRY_COUNT = 2
# Whether to enable catchup for dated DAGs, allowing automatic backfill.
Expand Down

0 comments on commit 41b0cdb

Please sign in to comment.