Replies: 2 comments
-
Oh!I found https://github.com/apache/airflow-client-python, a offical library! |
Beta Was this translation helpful? Give feedback.
0 replies
-
import requests 定义Aiflow API的端点api_url = "http://your-aiflow-server/api/endpoint" 定义请求头和数据headers = { 发送POST请求response = requests.post(api_url, headers=headers, json=data) 处理响应if response.status_code == 200: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use python code call a exist airflow program, like login, trriger dag, activate dag!Is there any exist method? The first step is login with csrf_token stop me. Beg to help me! TIA!
Beta Was this translation helpful? Give feedback.
All reactions