You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running multiple cBlue CLI processes in parallel, we discovered what looks to be a race condition. The cblue_configuration.json is a single file in the cBlue app folder, and every parallel process will attempt to update its contents. When two or more processes try to update this file at the same time, we get a JSONDecodeError on line 224 of CBlueApp.py.
I addressed this for our production team by adding an argument to the CLI called --save_config. I turned this option off by default for the CLI, and on by default for the GUI. I would be happy to submit my code for review as a PR or by other means. It looks like I don't currently have the needed permissions to submit a PR.
The text was updated successfully, but these errors were encountered:
AustinZAnderson
changed the title
CLI race condition: Concurrent writes to cblue_configuration.json
CLI race condition: Simultaneous writes to cblue_configuration.json
Jan 3, 2025
When running multiple cBlue CLI processes in parallel, we discovered what looks to be a race condition. The
cblue_configuration.json
is a single file in the cBlue app folder, and every parallel process will attempt to update its contents. When two or more processes try to update this file at the same time, we get aJSONDecodeError
on line 224 ofCBlueApp.py
.I addressed this for our production team by adding an argument to the CLI called
--save_config
. I turned this option off by default for the CLI, and on by default for the GUI. I would be happy to submit my code for review as a PR or by other means. It looks like I don't currently have the needed permissions to submit a PR.The text was updated successfully, but these errors were encountered: