Skip to content

Conversation

@chenglongyan
Copy link
Contributor

The below exception is thrown when the list-runs argument is not set
DAG: None does not exist in the 'DAG' table

So I think dag_id should be a positional argument


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

dag_id should be a positional argument.
@potiuk potiuk merged commit ed6ea72 into apache:main Aug 27, 2022
@jedcunningham jedcunningham added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Sep 12, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone Sep 14, 2022
jedcunningham added a commit to astronomer/airflow that referenced this pull request Sep 14, 2022
jedcunningham added a commit to astronomer/airflow that referenced this pull request Sep 14, 2022
While it would ideal to transition to a positional arg like was
attempted in apache#25978, this unfortunately does result in a breaking change
so we cannot do it now.

By instead marking the existing arg as required, we maintain backcompat
while also providing a helpful error message to the user if they forget
it.
jedcunningham added a commit that referenced this pull request Sep 14, 2022
While it would ideal to transition to a positional arg like was
attempted in #25978, this unfortunately does result in a breaking change
so we cannot do it now.

By instead marking the existing arg as required, we maintain backcompat
while also providing a helpful error message to the user if they forget
it.

This reverts commit ed6ea72.
jedcunningham added a commit that referenced this pull request Sep 15, 2022
While it would ideal to transition to a positional arg like was
attempted in #25978, this unfortunately does result in a breaking change
so we cannot do it now.

By instead marking the existing arg as required, we maintain backcompat
while also providing a helpful error message to the user if they forget
it.

This reverts commit ed6ea72.

(cherry picked from commit f6c579c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants