Skip to content

Commit ae745a3

Browse files
Fix PR review issues: remove unused event, use specific exception
1 parent 87c161c commit ae745a3

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

coderunner/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def health(self) -> bool:
122122
try:
123123
response = self._client.get(f"{self.base_url}/health")
124124
return response.status_code == 200
125-
except Exception:
125+
except httpx.RequestError:
126126
return False
127127

128128
def close(self):

server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ async def _health_check_loop(self):
338338

339339
# --- GRACEFUL SHUTDOWN ---
340340

341-
_shutdown_event = asyncio.Event()
342-
343341

344342
async def graceful_shutdown():
345343
"""Clean up kernels on shutdown."""

0 commit comments

Comments
 (0)