Skip to content

fix: sync func.retry.statistics with copy's statistics#614

Merged
mergify[bot] merged 1 commit intomainfrom
devs/jd/fix/retry-statistics-sync/I0299c76659ae6fc0c6354efae22b17946dca223c
Feb 25, 2026
Merged

fix: sync func.retry.statistics with copy's statistics#614
mergify[bot] merged 1 commit intomainfrom
devs/jd/fix/retry-statistics-sync/I0299c76659ae6fc0c6354efae22b17946dca223c

Conversation

@jd
Copy link
Owner

@jd jd commented Feb 24, 2026

Fixes #613

func.retry.statistics was always empty because func.retry points to
the original Retrying object, but begin() (which populates statistics)
is only called on the per-invocation copy. Fix by pointing the
original's _local.statistics to the copy's statistics dict so they
share the same object.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

@jd jd force-pushed the devs/jd/fix/retry-statistics-sync/I0299c76659ae6fc0c6354efae22b17946dca223c branch from 832c658 to bba759c Compare February 25, 2026 13:42
Fixes #613

func.retry.statistics was always empty because func.retry points to
the original Retrying object, but begin() (which populates statistics)
is only called on the per-invocation copy. Fix by pointing the
original's _local.statistics to the copy's statistics dict so they
share the same object.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: I0299c76659ae6fc0c6354efae22b17946dca223c
@jd jd force-pushed the devs/jd/fix/retry-statistics-sync/I0299c76659ae6fc0c6354efae22b17946dca223c branch from bba759c to 36a0f60 Compare February 25, 2026 15:04
@jd jd marked this pull request as ready for review February 25, 2026 15:38
@mergify mergify bot merged commit 4c1b7bc into main Feb 25, 2026
9 checks passed
@mergify mergify bot deleted the devs/jd/fix/retry-statistics-sync/I0299c76659ae6fc0c6354efae22b17946dca223c branch February 25, 2026 15:39
@mergify
Copy link
Contributor

mergify bot commented Feb 25, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-02-25 15:39 UTC
  • Checks passed · in-place
  • Merged2026-02-25 15:39 UTC · at 36a0f607b5d9e0cca6796b37c96cee7a0a1a20d9

This pull request spent 11 seconds in the queue, including 1 second running CI.

Required conditions to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

func.retry.statistics is empty during execution

1 participant