Skip to content

Conversation

@mightqxc
Copy link
Contributor

@mightqxc mightqxc commented Dec 5, 2025

No description provided.

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 attempts to fix a critical bug in the request_lock context manager where the yield statement was executing regardless of whether the lock was successfully acquired. The fix moves the code that retrieves the locked request spec and yields it inside the if got_lock block, ensuring it only executes when the lock is obtained.

Key Changes

  • Indented lines 733-736 to be inside the if got_lock == True block, preventing yielding when lock acquisition fails
  • Added a debug log statement after the yield to track when the context manager completes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mightqxc mightqxc merged commit a44d1da into master Dec 8, 2025
1 check passed
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.

2 participants