Skip to content

Commit

Permalink
[AIRFLOW-1031] Replace hard-code to DagRun.ID_PREFIX
Browse files Browse the repository at this point in the history
Closes apache#2613 from morefreeze/patch-1

(cherry picked from commit ec33ff8)
Signed-off-by: Bolke de Bruin <[email protected]>
  • Loading branch information
morefreeze authored and bolkedebruin committed Sep 19, 2017
1 parent af40508 commit aa3844f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def create_dag_run(self, dag, session=None):

if next_run_date and period_end and period_end <= datetime.now():
next_run = dag.create_dagrun(
run_id='scheduled__' + next_run_date.isoformat(),
run_id=DagRun.ID_PREFIX + next_run_date.isoformat(),
execution_date=next_run_date,
start_date=datetime.now(),
state=State.RUNNING,
Expand Down

0 comments on commit aa3844f

Please sign in to comment.