Trigger DAG Runs through REST API?

396 views
Skip to first unread message

Ronny Li

unread,
May 19, 2021, 4:27:00 PM5/19/21
to cloud-composer-discuss
Hi everyone,

Is it possible to trigger DAG runs via REST through Cloud Composer? I see in Airflow's documentation that it should be possible but I'm running into issues when trying to add Basic Authentication to my airflow.cfg

CRITICAL - Cannot import airflow.api.auth.backend.basic_auth for API authentication due to: No module named 'airflow.api.auth.backend.basic_auth'

Any advice is appreciated. Thank you!
- Ronny

Mateusz Henc

unread,
May 19, 2021, 4:34:28 PM5/19/21
to Ronny Li, cloud-composer-discuss
Hi,
Can you check
It describes how to trigger DAGs from Cloud Functions, which actually uses REST API.

Best regards,
Mateusz Henc


--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/1bab6173-292f-4036-8301-5cb46a0ba255n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages