ashb commented on a change in pull request #17578:
URL: https://github.com/apache/airflow/pull/17578#discussion_r689472127
##########
File path: airflow/utils/task_group.py
##########
@@ -94,10 +95,15 @@ def __init__(
self.used_group_ids: Set[Optional[str]] = set()
self._parent_group = None
else:
- if not isinstance(group_id, str):
- raise ValueError("group_id must be str")
- if not group_id:
- raise ValueError("group_id must not be empty")
+ if prefix_group_id:
Review comment:
Alternatively: We should just allow non-ascii characters here (and in
DAG and task ids), and follow the same rules as python identifiers (which _do_
allow unicode word characters)
https://docs.python.org/3/reference/lexical_analysis.html?highlight=identifier#identifiers
(There was another issue related to this where someone was asking to add a
"comment" or description to a DAG for showing in the UI, because the author
wanted Chinese dag ids. Can't find that issue now though.)
--
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]