Skip to content

Commit e1a9cf7

Browse files
committed
Added a return message to the 'stop_multigrid_watcher' and 'update_multigrid_controller_visit_end_time' endpoints in the instrument server
1 parent 59a84c6 commit e1a9cf7

File tree

1 file changed

+2
-0
lines changed
  • src/murfey/instrument_server

1 file changed

+2
-0
lines changed

src/murfey/instrument_server/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,15 @@ def start_multigrid_watcher(session_id: MurfeySessionID, process: bool = True):
212212
@router.delete("/sessions/{session_id}/multigrid_watcher/{label}")
213213
def stop_multigrid_watcher(session_id: MurfeySessionID, label: str):
214214
watchers[label].request_stop()
215+
return {"success": True}
215216

216217

217218
@router.post("/sessions/{session_id}/multigrid_controller/visit_end_time")
218219
def update_multigrid_controller_visit_end_time(
219220
session_id: MurfeySessionID, end_time: datetime
220221
):
221222
controllers[session_id].update_visit_time(end_time)
223+
return {"success": True}
222224

223225

224226
class RsyncerSource(BaseModel):

0 commit comments

Comments
 (0)