airflow.decorators.branch_virtualenv
¶
Module Contents¶
Functions¶
|
Wrap a python function into a BranchPythonVirtualenvOperator. |
- airflow.decorators.branch_virtualenv.branch_virtualenv_task(python_callable=None, multiple_outputs=None, **kwargs)[source]¶
Wrap a python function into a BranchPythonVirtualenvOperator.
For more information on how to use this operator, take a look at the guide: Branching
Accepts kwargs for operator kwarg. Can be reused in a single DAG.
- Parameters
python_callable (Callable | None) – Function to decorate
multiple_outputs (bool | None) – if set, function return value will be unrolled to multiple XCom values. Dict will unroll to xcom values with keys as XCom keys. Defaults to False.