Skip to content

Commit

Permalink
Fix 'airflow dags backfill --reset-dagruns' errors when run twice (#2…
Browse files Browse the repository at this point in the history
…1062)

Co-authored-by: uplsh <uplsh@linecorp.com>
(cherry picked from commit d97e2ba)
  • Loading branch information
uplsh580 authored and jedcunningham committed Feb 17, 2022
1 parent 07102e9 commit dda8f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/cli/commands/dag_command.py
Expand Up @@ -47,7 +47,7 @@
)
from airflow.utils.dot_renderer import render_dag
from airflow.utils.session import create_session, provide_session
from airflow.utils.state import State
from airflow.utils.state import DagRunState


@cli_utils.action_logging
Expand Down Expand Up @@ -105,7 +105,7 @@ def dag_backfill(args, dag=None):
end_date=args.end_date,
confirm_prompt=not args.yes,
include_subdags=True,
dag_run_state=State.NONE,
dag_run_state=DagRunState.QUEUED,
)

try:
Expand Down

0 comments on commit dda8f43

Please sign in to comment.