Skip to content

Conversation

@mobuchowski
Copy link
Contributor

Add tasksDuration dict to AirflowStateRunFacet that already contains states of the tasks, attached to the event send on DAG success/failure. That is useful if the task level event on the end of execution was not emitted, for example due to https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#task-success-overtime

Alternative would be to add tuple containing startTime, endTime.

Signed-off-by: Maciej Obuchowski <maciej.obuchowski@datadoghq.com>
@hussein-awala
Copy link
Member

I'm also ok with adding start and end time, so let's wait for a second opinion.

Copy link
Contributor

@kacpermuda kacpermuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the start/end date approach is also fine, but this is short and clean.

@mobuchowski
Copy link
Contributor Author

Thanks!

@mobuchowski mobuchowski merged commit 9dcdf64 into main Aug 11, 2025
75 checks passed
@mobuchowski mobuchowski deleted the add-task-duration branch August 11, 2025 09:16
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Aug 15, 2025
Signed-off-by: Maciej Obuchowski <maciej.obuchowski@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants