xBis7 commented on code in PR #62019:
URL: https://github.com/apache/airflow/pull/62019#discussion_r2812863527
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -1283,6 +1288,13 @@ def _on_term(signum, frame):
msg, state = _handle_current_task_failed(ti)
error = e
finally:
+ Stats.incr(
+ f"ti.finish.{ti.dag_id}.{ti.task_id}.{state.value}",
+ tags=stats_tags,
+ )
+ # Same metric with tagging
+ Stats.incr("ti.finish", tags={**stats_tags, "state": state.value})
Review Comment:
I realize now that it's hard for anyone reading the code to figure out
what's going on with the `DualStatsManager` params. Some comments will be
useful.
--
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]