We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9919cd6 + a900cb4 commit 070fa3fCopy full SHA for 070fa3f
1 file changed
src/pyob/dashboard_server.py
@@ -99,9 +99,10 @@ def api_analysis_data():
99
100
issue_statuses = {}
101
status_file = "issue_statuses.json"
102
- if os.path.exists(status_file):
103
- with open(status_file, "r", encoding="utf-8") as f:
104
- issue_statuses = json.load(f)
+ with status_lock: # Acquire lock before reading shared resource
+ if os.path.exists(status_file):
+ with open(status_file, "r", encoding="utf-8") as f:
105
+ issue_statuses = json.load(f)
106
107
# Merge statuses into parsed_data.
108
# This logic assumes parsed_data is a dictionary with an 'issues' key,
0 commit comments