Skip to content

Commit

Permalink
fix: Type error due to missing default type-var in zmq.Context (#3307) (
Browse files Browse the repository at this point in the history
#3308)

Co-authored-by: Joongi Kim <[email protected]>
  • Loading branch information
lablup-octodog and achimnol authored Dec 26, 2024
1 parent e035a0a commit 2cb8b37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ai/backend/logging/handler/intrinsic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, *, endpoint: str, msgpack_options: MsgpackOptions) -> None:
super().__init__()
self.endpoint = endpoint
self.msgpack_options = msgpack_options
self._zctx = zmq.Context()
self._zctx = zmq.Context[zmq.Socket]()
# We should use PUSH-PULL socket pairs to avoid
# lost of synchronization sentinel messages.
if endpoint:
Expand Down
2 changes: 1 addition & 1 deletion src/ai/backend/logging/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def log_worker(
assert graylog_handler is not None
graylog_handler.setFormatter(SerializedExceptionFormatter())

zctx = zmq.Context()
zctx = zmq.Context[zmq.Socket]()
agg_sock = zctx.socket(zmq.PULL)
agg_sock.bind(log_endpoint)
ep_url = yarl.URL(log_endpoint)
Expand Down

0 comments on commit 2cb8b37

Please sign in to comment.