Skip to content

Commit b73776c

Browse files
why is this 1
1 parent d24275f commit b73776c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 24.12.4
1+
### 24.12.10
22
- Hotfix for UI settings bug
33

44

pioreactorui/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,9 +1743,9 @@ def setup_worker_pioreactor() -> ResponseReturnValue:
17431743
status, msg = result(blocking=True, timeout=250)
17441744
except HueyException:
17451745
status, msg = False, "Timed out, see logs."
1746-
1746+
publish_to_log(status, "setup_worker_pioreactor")
17471747
if status:
1748-
return Response(status=200)
1748+
return {"msg": f"Worker {new_name} added successfully."}, 200
17491749
else:
17501750
publish_to_error_log(msg, "setup_worker_pioreactor")
17511751
return {"msg": msg}, 500

pioreactorui/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ def pio_run(*args: str, env: dict[str, str] = {}) -> bool:
8585

8686
@huey.task()
8787
def add_new_pioreactor(new_pioreactor_name: str, version: str, model: str) -> tuple[bool, str]:
88-
# CPU heavy
8988
logger.info(f"Adding new pioreactor {new_pioreactor_name}, {model} {version}")
9089
result = run(
9190
[PIO_EXECUTABLE, "workers", "add", new_pioreactor_name, "-v", version, "-m", model],
9291
capture_output=True,
9392
text=True,
9493
)
9594
cache.evict("config")
95+
logger.info(result.returncode)
9696
if result.returncode != 0:
9797
return False, str(result.stderr.strip())
9898
else:

0 commit comments

Comments
 (0)