擅长:python、mysql、java
<p>我鼓励大家看看<a href="https://airflow.apache.org/docs/stable/howto/operator/python.html" rel="nofollow noreferrer">PythonOperator</a>和<a href="https://airflow.apache.org/docs/stable/_api/airflow/models/dag/index.html" rel="nofollow noreferrer">context dictionary</a>。在Composer中使用变量时,这两种方法都很有用</p>
<p>首先,由于您已经有了自定义操作符,我强烈建议您查看一下<a href="https://github.com/astronomer/airflow-guides/blob/master/guides/templating.md" rel="nofollow noreferrer">here</a>。有一些常用的宏和模板使用气流。因此,您可以找出您可能有错误的地方</p>