Skip to content

Conversation

AliRaZa1121
Copy link

@AliRaZa1121 AliRaZa1121 commented Aug 18, 2025

  • Add opt-in 'failReadinessOnShutdown' (default false)
  • Classify fulfilled results with {status:'down'} as errors
  • Capture sync throws from indicators via async wrapping
  • Status precedence: (shutdown+flag) -> 'error'; else errors -> 'error'; else shutdown -> 'shutting_down'; else 'ok'
  • Tests: shutdown behavior (flag on/off), legacy sync-throw, 'down' result classification

Fixes #2298

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

- Add opt-in 'failReadinessOnShutdown' (default false)
- Classify fulfilled results with {status:'down'} as errors
- Capture sync throws from indicators via async wrapping
- Status precedence: (shutdown+flag) -> 'error'; else errors -> 'error'; else shutdown -> 'shutting_down'; else 'ok'
- Tests: shutdown behavior (flag on/off), legacy sync-throw, 'down' result classification

Fixes nestjs#2298
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.

On shutdown, health request before signal interrupted with ECONNREFUSED
1 participant