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 12:48:03 UTC
[GitHub] [airflow] uranusjr commented on a diff in pull request #22946: Ensure that mapped TIs in BackfillJob have a start_date
uranusjr commented on code in PR #22946:
URL: https://github.com/apache/airflow/pull/22946#discussion_r848394782
##########
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:
It’s probably moot since BackfillJob is a mess, but why don’t we do this in `_manage_executor_state` directly when `mapped_tis` are created?
--
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