pateash commented on code in PR #24902:
URL: https://github.com/apache/airflow/pull/24902#discussion_r923436136
##########
airflow/sensors/external_task.py:
##########
@@ -143,18 +151,25 @@ def __init__(
if external_task_id is not None:
external_task_ids = [external_task_id]
- if external_task_ids:
+ if external_task_group_id and external_task_ids:
Review Comment:
this is to check if both values are set or not, we can't use
**exactly_one**, as if we do something like below,
```
if not exactly_one(external_task_group_id, *external_task_ids):
raise ValueError(
"Values for `external_task_group_id` and `external_task_id`
or `external_task_ids` "
"can't be set at the same time"
)
```
It will always fail whenever we have provides multiple values as
**external_task_ids** is a list.
--
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]