josh-fell opened a new issue #17083: URL: https://github.com/apache/airflow/issues/17083
**Description** The `airflow.models.baseoperator.chain()` is a very useful and convenient way to add sequential task dependencies in DAGs. This function has recently been updated to support `BaseOperator` and `XComArgs` but should also be able to support `Labels` as well. **Use case / motivation** Users who create tasks via the `@task` decorator will not be able to use the `chain()` function to apply sequential dependencies that do not share an `XComArg` implicit dependency with a `Label`. This use case can occur when attempting to chain multiple branches` labels and the next sequential task. With the new update (yet to be released), users will receive the following exception when attempting to chain an `XComArg` and `Label`: ```bash TypeError: Chain not supported between instances of <class 'airflow.utils.edgemodifier.EdgeModifier'> and <class 'airflow.models.xcom_arg.XComArg'> ``` **Are you willing to submit a PR?** Absolutely. 🚀 **Related Issues** None -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
