Add data_refresh
pool creation to just init
#2434
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🌟 goal: addition
Addition of new feature
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: catalog
Related to the catalog and Airflow DAGs
🔧 tech: airflow
Involves Apache Airflow
🔧 tech: just
Involves Just.js
Problem
When testing the data refresh DAGs locally, you must remember to create the
data_refresh
pool via the UI. Luckily, the DAG will remind you of this, but it's still easy to miss and the DAG behaves unexpectedly (indefinitely rescheduling a particular task) if you don't create the pool.Description
We can programatically create the data refresh pool in a new
catalog/init
recipe that can get called by the rootinit
recipe.Using the
airflow
CLI, the following will create the required pool:airflow pools set data_refresh 1 "Data refresh pool"
Add a new recipe to
catalog/justfile
for runningairflow
CLI commands. A diff along the following lines may work:However, it may be necessary to create a
wait-up
command for the catalog to ensure that the Airflow CLI is ready to be used.The text was updated successfully, but these errors were encountered: