airflow.sensors.python
¶
模組內容¶
類別¶
等待 Python callable 回傳 True。 |
- class airflow.sensors.python.PythonSensor(*, python_callable, op_args=None, op_kwargs=None, templates_dict=None, **kwargs)[原始碼]¶
繼承自:
airflow.sensors.base.BaseSensorOperator
等待 Python callable 回傳 True。
使用者可以將輸入參數放在 templates_dict 中,例如
templates_dict = {'start_ds': 1970}
,並在 callable 中呼叫kwargs['templates_dict']['start_ds']
來存取參數- 參數
另請參閱
如需更多關於如何使用此感測器的資訊,請參閱指南:PythonSensor