Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: chapter06/scripts/trigger_dag.sh #44

Open
erhwenkuo opened this issue Feb 7, 2021 · 0 comments
Open

bug: chapter06/scripts/trigger_dag.sh #44

erhwenkuo opened this issue Feb 7, 2021 · 0 comments

Comments

@erhwenkuo
Copy link

The dag id is named as listing_6_08 in chapter06/dags/listing_6_8.py, so the chapter06/scripts/trigger_dag.sh should follow the dag id.

From:

#!/usr/bin/env bash

# Trigger DAG with Airflow CLI
airflow dags trigger listing_6_8 --conf '{"supermarket": 1}'

# Trigger DAG with Airflow REST API
curl -X POST "http://localhost:8080/api/v1/dags/listing_6_8/dagRuns" -H  "Content-Type: application/json" -d '{"conf": {"supermarket": 1}}' --user "admin:admin"

To:

#!/usr/bin/env bash

# Trigger DAG with Airflow CLI
airflow dags trigger listing_6_08 --conf '{"supermarket": 1}'

# Trigger DAG with Airflow REST API
curl -X POST "http://localhost:8080/api/v1/dags/listing_6_08/dagRuns" -H  "Content-Type: application/json" -d '{"conf": {"supermarket": 1}}' --user "admin:admin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant