Repository navigation
Add opt-in consistent operation timeouts without changing defaults - #99
Merged
Merged
Conversation
…er timeout as a number Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…forever option Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
consistentOperationTimeouts: trueto address #82 while preserving the current 0.13.1 behavior by default.Without the option, or with
false, the first operation-timeout callback still receives no arguments, its timer remains referenced even withunref: true, and forever retries keep the legacy array form for delays after their timeout list is used up. Later attempts keep their existing callback arguments andunrefbehavior.Opting in changes all three behaviors consistently:
unref: true, the first operation-timeout timer is unreferenced too. The process can exit before the callback if no other referenced handles remain.setTimeout(a number for generated timeout arrays). Native Node timing is unchanged; timer wrappers can observe the opted-in argument type.The option works through
retry.operation()and theRetryOperationconstructor. The old boolean constructor signature remains supported. The README documents both modes and corrects the existing forever-delay description.Validation:
unrefcalls, real child-process lifetime for both construction paths, and raw forever-delay argument types.masterimplementation, including the boolean constructor signature.master, with no new warnings. That local hook was bypassed for the commit; repository tests and CI are unchanged.Opus 5.5 convergence completed in three bounded review rounds. Final implementation verification passed for
d12aca703f89d2165de08f238bdf4fd3f71a5770; all accepted findings are resolved. Review artifacts, primary-source evidence, raw validation logs, and actual model receipts are preserved locally.Fixes #82