Skip to content

Commit

Permalink
Merge pull request #16 from noelmcloughlin/examples
Browse files Browse the repository at this point in the history
chore(defaults): core.load_examples = false
  • Loading branch information
noelmcloughlin authored Dec 8, 2020
2 parents b23f0a9 + f92d078 commit 4d1422a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions airflow/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ airflow:
default_timezone: system
# https://stackoverflow.com/questions/45455342
sql_alchemy_conn: postgresql+psycopg2://airflow:[email protected]/airflow
load_examples: False
webserver:
authenticate: true
auth_backend: airflow.contrib.auth.backends.password_auth # airflow.api.auth.backend.deny_all
Expand Down
2 changes: 1 addition & 1 deletion airflow/files/default/airflow.cfg.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ max_active_runs_per_dag = 16
# Whether to load the DAG examples that ship with Airflow. It's good to
# get started, but you probably want to set this to False in a production
# environment
load_examples = True
load_examples = {{ config.core.load_examples or True }}

# Whether to load the default connections that ship with Airflow. It's good to
# get started, but you probably want to set this to False in a production
Expand Down
6 changes: 4 additions & 2 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ airflow:
config:
airflow:
content:
authentication: True
executor: LocalExecutor
core:
authentication: True
executor: LocalExecutor
load_examples: True
state_colors:
# https://airflow.apache.org/docs/apache-airflow/stable/howto/customize-state-colors-ui.html
queued: 'darkgray'
Expand Down

0 comments on commit 4d1422a

Please sign in to comment.