You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/12 13:02:59 UTC

[GitHub] [airflow] ashb commented on a diff in pull request #22946: Ensure that mapped TIs in BackfillJob have a start_date

ashb commented on code in PR #22946:
URL: https://github.com/apache/airflow/pull/22946#discussion_r848409900


##########
airflow/jobs/backfill_job.py:
##########
@@ -621,6 +621,9 @@ def to_keep(key: TaskInstanceKey) -> bool:
 
                 ti_status.to_run.update({ti.key: ti for ti in mapped_tis})
 
+                for new_ti in mapped_tis:
+                    new_ti.set_state(TaskInstanceState.SCHEDULED, session=session)

Review Comment:
   Yeah, this is hack on top of hack. I'm going to schedule re-writting Backfill from the ground up for 2.4/2.5.



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org