mobuchowski commented on code in PR #43936:
URL: https://github.com/apache/airflow/pull/43936#discussion_r1849118037
##########
providers/src/airflow/providers/dbt/cloud/utils/openlineage.py:
##########
@@ -156,6 +156,8 @@ async def get_artifacts_for_steps(steps, artifacts):
task_id=operator.task_id,
logical_date=_get_logical_date(task_instance),
try_number=_get_try_number(task_instance),
+ queued_dttm=task_instance.queued_dttm,
Review Comment:
If you use mode=reschedule, the
[on_task_instance_running](https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/listeners.html#taskinstance-state-change-events)
listener will be called multiple times with the same task instance.
There is apparently any other way to distinguish those events other than
`queued_dttm` which is getting updated when scheduler schedules it again.
Compare to the retry scenario, where `try_number` is being bumped for any
additional retry.
--
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]