Skip to content

Commit

Permalink
Bugfix/resolve airflow bug (#20)
Browse files Browse the repository at this point in the history
* FEAT: airflow webserver secret key

* BUGFIX: resolve airflow shutdown

* ENH: change pytype to mypy

* CHORE: remove unnecessary code

* CHORE: add .

* CHORE: update annotation
  • Loading branch information
dongminlee94 committed Jul 1, 2023
1 parent 4e0ce26 commit a39dcf0
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 422 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ AIRFLOW__SCHEDULER__SCHEDULE_AFTER_TASK_EXECUTION=False
AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE=Asia/Seoul
AIRFLOW__WEBSERVER__EXPOSE_STACKTRACE=True
AIRFLOW__WEBSERVER__NAVBAR_COLOR=#F9D448
AIRFLOW__WEBSERVER__SECRET_KEY=0HEnAKsvQN22fHFho81LSg==
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ format:
poetry run black .

lint:
poetry run pytype src docker
poetry run mypy src docker
poetry run ruff src docker --fix

######################
Expand Down
8 changes: 5 additions & 3 deletions docker-compose-airflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ services:
image: airflow:latest
container_name: initdb
depends_on:
- redis
- postgres
postgres:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- .env
entrypoint: ["/bin/bash", "-c"]
Expand Down Expand Up @@ -68,7 +70,7 @@ services:
image: airflow:latest
container_name: flower
depends_on:
- redis
- initdb
env_file:
- .env
ports:
Expand Down
Loading

0 comments on commit a39dcf0

Please sign in to comment.