docker-compose up -d postgres_airflow
docker-compose run airflow_init
docker-compose up -d airflow_webserver
docker-compose up airflow_scheduler
- web server is exposed on port 9090
- login admin/airflow
- dag_id is
xcom_docker_dag
- task logs can be found in
./logs
- run dag
xcom_docker_dag
- task
xcom_no
succedes,xcom_all
andxcom_last
fail withTypeError: Object of type bytes is not JSON serializable
- mount fixed_docker.py into scheduler (uncommend line in
docker-compose.yml
) - run dag
xcom_docker_dag
- all task succeed
- check xcom of tasks:
xcom_no
: emptyxcom_all
: 0 1 2 3 4 5 6 7 8 9xcom_last
: 9