Skip to content

Commit 8158165

Browse files
mcp doesn't even need to import on workers. The import fails since mcp-utils isn't installed on workers
1 parent aaa0d90 commit 8158165

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- Removed cases of duplicate log lines shown in the UI.
2828
- MCP now correctly respects configured notification methods.
2929
- Fixed model selection in the “Add a new Pioreactor worker” dialog in Inventory.
30-
- For leader-only Pioreactors, fixed them not showing up in "Cluster clocks" (and likely other places)
30+
- For leader-only Pioreactors, fixed leaders not showing up in "Cluster clocks" (and likely other places)
3131

3232
### Breaking changes
3333
- Turbidostat now enforces `duration = 0.25s` for its frequent checks. The UI already used this value; CLI runs will now match it for more consistent behavior.

web/pioreactorui/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,16 @@ def decode_base64(string: str) -> str:
5858

5959
def create_app():
6060
from .unit_api import unit_api
61-
from .api import api
62-
from .mcp import mcp_bp
6361

6462
app = Flask(NAME)
6563
app.logger = logger
6664

6765
app.register_blueprint(unit_api)
6866

6967
if am_I_leader():
68+
from .api import api
69+
from .mcp import mcp_bp
70+
7071
app.register_blueprint(api)
7172
app.register_blueprint(mcp_bp)
7273
# we currently only need to communicate with MQTT for the leader.

0 commit comments

Comments
 (0)