uranusjr commented on code in PR #56690:
URL: https://github.com/apache/airflow/pull/56690#discussion_r2446738747
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -929,6 +958,13 @@ def _on_term(signum, frame):
_push_xcom_if_needed(result, ti, log)
+ # Send metrics to Stats backend
+ if end_resources is not None:
+ cpu_percent, memory_mb = end_resources
+ stats_tags = {"dag_id": ti.dag_id, "task_id": ti.task_id}
Review Comment:
Should this also include run_id and map_index too? Or maybe it should just
use the uuid (plus try_number)?
--
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]