The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix/dag-processing-processes-decr-on-success has failed.
Run started by GitHub user nagasrisai (triggered by nagasrisai).

Head commit for run:
291355514842a6988b079de5573ba7c2a022dc78 / nagasrisai 
<[email protected]>
fix: emit stats.decr for dag_processing.processes on graceful processor exit

The dag_processing.processes metric documents a negative delta when
parsers complete, but _collect_results() — the normal graceful exit
path — never emitted a matching stats.decr. Only the three abnormal
paths (stop/timeout/terminate) decremented the counter, so the gauge
drifted upward indefinitely under normal operation.

Add stats.decr with action="success" inside _collect_results() after
each finished processor is popped. Guard the _get_team_names call with
an early return when no processors finished to avoid a pointless DB
query on the common no-op iteration.

Adds a parametrized test test_collect_results_emits_decr_on_success in
TestMultiTeamMetrics covering both with-team and without-team cases,
following the same pattern as test_terminate_includes_team_name.

Closes #69984

Report URL: https://github.com/apache/airflow/actions/runs/29628938703

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to