Skip to content

Conversation

@bougyman
Copy link
Member

When returning spawn instances (the pool) in non-blocking mode (for tests)
the behavior to spawn instances in blocking mode was removed. This adds
it back by storing the pool in a variable and returning it in non-blocking
mode.

Copilot AI review requested due to automatic review settings July 31, 2025 18:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the NATS API server was not properly spawning instances in blocking mode. The issue was that when the method returned early for non-blocking mode, it bypassed the instance spawning logic entirely.

  • Stores the spawned instance pool in a variable before returning in non-blocking mode
  • Ensures instances are always spawned regardless of blocking mode

@bougyman bougyman enabled auto-merge (squash) July 31, 2025 18:49
@bougyman bougyman merged commit a659145 into main Jul 31, 2025
4 checks passed
@bougyman bougyman deleted the run-in-blocking branch July 31, 2025 18:53
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.

3 participants