xBis7 commented on code in PR #63932:
URL: https://github.com/apache/airflow/pull/63932#discussion_r3124936675


##########
providers/edge3/src/airflow/providers/edge3/executors/edge_executor.py:
##########
@@ -225,11 +226,14 @@ def _update_orphaned_jobs(self, session: Session) -> bool:
                     "queue": job.queue,
                     "state": str(TaskInstanceState.FAILED),
                 }
-                Stats.incr(
-                    
f"edge_worker.ti.finish.{job.queue}.{TaskInstanceState.FAILED}.{job.dag_id}.{job.task_id}",
-                    tags=tags,
-                )
-                Stats.incr("edge_worker.ti.finish", tags=tags)
+                if AIRFLOW_V_3_2_1_PLUS:

Review Comment:
   I simplified the approach and we don't need any back-compat checks anymore. 
Everything is handled internally by `stats` and the public interface stays the 
same.



-- 
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]

Reply via email to