我使用REST API将参数传递给基于任务流的Dag。看看在这个论坛上提出的类似问题,下面似乎是访问传递的参数的常见方式。within a python callable of the PythonOperator:
context['dag_run'].conf['key'] 我尝试获取上下文字典 @dag(default_args=default_args, schedule_interval=None, start_date=days_ago(2</
我希望获得SparkSubmitOperator的状态,将其转换为API所理解的值,并在SimpleHttpOperator的有效负载中传递它,以便我可以更新DB中的作业状态。我想通过使用TaskflowAPI来做到这一点。我编写了下面的代码,但是当我试图加载它时,我得到了这个错误:
Broken DAG: [/opt/airflow/dags/export/inapp_clicks/export.py] T