kzosabe commented on code in PR #34771:
URL: https://github.com/apache/airflow/pull/34771#discussion_r1349641886
##########
airflow/jobs/scheduler_job_runner.py:
##########
@@ -614,6 +614,11 @@ def _executable_task_instances_to_queued(self, max_tis:
int, session: Session) -
)
for ti in executable_tis:
+ # ti.start_date could be None when the scheduler queue a TI
+ # or when the backfill CLI send a TI to the executor
+ # in this case set it at this line because
emit_state_change_metric doesn't expect it
+ if ti.start_date is None:
+ ti.start_date = timezone.utcnow()
Review Comment:
I noticed that this change is not persisted due to `make_transient` applied
afterward,
but I want to know whether we should modify and persist the `start_date`
value here or not before implementing fix
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]