Skip to content

Conversation

@ajcasagrande
Copy link
Contributor

cherry-pick #267 to main

Copy link

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 implements graceful termination of the ZMQ context in the proxy manager to prevent potential hangs during shutdown. The change replaces the synchronous destroy() call with an asynchronous term() operation that includes a timeout mechanism.

  • Replaces immediate ZMQ context destruction with graceful termination using a timeout
  • Adds proper error handling and logging for ZMQ context termination failures
  • Introduces a configurable timeout constant for the termination process

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
aiperf/controller/proxy_manager.py Implements graceful ZMQ context termination with timeout and error handling
aiperf/common/constants.py Adds timeout constant for ZMQ context termination

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Sep 22, 2025

Codecov Report

❌ Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
aiperf/controller/proxy_manager.py 25.00% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ajcasagrande ajcasagrande merged commit 6c6c169 into main Sep 22, 2025
3 of 4 checks passed
@ajcasagrande ajcasagrande deleted the ajc/zmq-term-main branch September 22, 2025 18:22
@the-david-oy the-david-oy self-requested a review September 22, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants