Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
[AIRFLOW-XXXX] Clarify dag_id parameter docstring (apache#7463)
Browse files Browse the repository at this point in the history
I spent a while chasing this just now, wondering whether `:` is valid before finding `validate_key()` in helpers.

I think it's helpful to surface this here directly.
  • Loading branch information
MichaelChirico authored and galuszkak committed Mar 5, 2020
1 parent 15bd9f4 commit 4a4b7bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class DAG(BaseDag, LoggingMixin):
DAGs essentially act as namespaces for tasks. A task_id can only be
added once to a DAG.
:param dag_id: The id of the DAG
:param dag_id: The id of the DAG; must consist exclusively of alphanumeric
characters, dashes, dots and underscores (all ASCII) exclusively
:type dag_id: str
:param description: The description for the DAG to e.g. be shown on the webserver
:type description: str
Expand Down

0 comments on commit 4a4b7bb

Please sign in to comment.