fix: dont unmoount sample on park and dry recovery

- remove now-redundant "dry" endpoint
This commit is contained in:
2026-08-24 16:13:20 +02:00
parent 3e6e399764
commit 4379b8a1a5
+1 -20
View File
@@ -1081,31 +1081,12 @@ async def park_and_dry(token: str = Depends(oauth2_scheme)):
Returns:
Dictionary with status and message.
"""
# TODO: add unmount toggle, and combine aprk_and_dry and tell_dry to one command that takes park and unmount as signals
auth.check_jwt_rw(cfg, auth.parse_token(token))
logger.debug("Executing unmount, dry and park")
daq.park_and_dry(park=True, unmount=True)
daq.park_and_dry(park=True, unmount=False)
return {"ok": True, "message": "TELL has been dried and parked"}
@app.post("/tell/dry")
async def tell_dry(token: str = Depends(oauth2_scheme)) -> dict:
"""
Execute a TELL dry cycle. Staff only.
Args:
token: OAuth2 access token.
Returns:
Dictionary with status and message.
"""
data = auth.parse_token(token)
auth.check_jwt_rw(data)
logger.debug("Executing dry and return to dewar")
daq.park_and_dry(park=False, unmount=False)
return {"ok": True, "message": "TELL dry cycle completed."}
@app.post("/tell/toggle_blower")
async def tell_toggle_blower(token: str = Depends(oauth2_scheme)) -> dict:
"""