Hey everyone :partyblobcat:, Would you guys know ...
# troubleshooting
s
Hey everyone partyblobcat, Would you guys know if there's a way to automatically set dags to paused when in a specific environment? I don't want the scheduler to start running jobs when I'm in my local dev environement Thanks
a
I don't know if this is possible as of now as a native implementation. As a workaround, would it work to add custom logic to your Airflow python code to create "disabled" jobs when the environment name matches a hard-coded string like
'dev'
?
s
@aaronsteers thanks for the help! I'll look into modifying our airflow file to accommodate that
p
@Stéphane Burwash I did something similar to this - I set dags_are_paused_at_creation using an environment specific entry in
env
. That way locally when I spin up airflow my dags get added but are all paused when I open the UI.
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION
is the environment variable you override
s
That's amazing, thank you so much @pat_nadolny!!!