Skip to content

Commit a0a487f

Browse files
author
Dylan Huang
committed
Fix broadcast_file_update logic to ensure only .jsonl files are broadcasted, preventing unnecessary updates for .lock files.
1 parent a7b76d4 commit a0a487f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eval_protocol/utils/logs_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def disconnect(self, websocket: WebSocket):
9393

9494
def broadcast_file_update(self, update_type: str, file_path: str):
9595
"""Broadcast file update to all connected clients."""
96-
if not file_path.startswith(default_logger.datasets_dir) and not file_path.endswith(".jsonl"):
96+
if not file_path.startswith(default_logger.datasets_dir) or not file_path.endswith(".jsonl"):
9797
"""
9898
.lock files are often created and deleted by the singleton lock
9999
mechanism so we only broadcast .jsonl files

0 commit comments

Comments
 (0)