diff --git a/broker/JFJochStateMachine.cpp b/broker/JFJochStateMachine.cpp index ccadf4949..ddc009829 100644 --- a/broker/JFJochStateMachine.cpp +++ b/broker/JFJochStateMachine.cpp @@ -329,6 +329,18 @@ void JFJochStateMachine::Initialize() { ResetError(); // Clear error, we don't care what was it start_exception = nullptr; // Re-initialising discards a pending start failure + // A fresh start: no images from before, and no live rugnux analysis or model left over from the + // previous user. + services.ClearImageBuffer(); + { + std::unique_lock ul2(rugnux_mutex); + RugnuxLiveSettings s = services.GetRugnuxLive(); + s.enable = false; + s.model = nullptr; + s.model_size_bytes = 0; + services.SetRugnuxLive(s); + } + logger.Info("Initialize"); SetState(JFJochState::Busy, "Configuring indexing threads", BrokerStatus::MessageSeverity::Info); try { diff --git a/broker/jfjoch_api.yaml b/broker/jfjoch_api.yaml index d142b8ede..4e9768dae 100644 --- a/broker/jfjoch_api.yaml +++ b/broker/jfjoch_api.yaml @@ -2917,6 +2917,7 @@ paths: This operation will reconfigure network interface of the detector. During operation of the detector it is recommended to use the `POST /pedestal` operation instead. If storage cells are used, the execution time might be few minutes. + It also clears the image buffer, disables live rugnux analysis and removes the rugnux model. This is async function - one needs to use `POST /wait_till_done` to ensure operation is done. responses: diff --git a/frontend/src/client/@tanstack/react-query.gen.ts b/frontend/src/client/@tanstack/react-query.gen.ts index db804e38d..04691c492 100644 --- a/frontend/src/client/@tanstack/react-query.gen.ts +++ b/frontend/src/client/@tanstack/react-query.gen.ts @@ -16,6 +16,7 @@ import type { deleteConfigRugnuxModelData, deleteConfigRugnuxModelError, getConf * This operation will reconfigure network interface of the detector. * During operation of the detector it is recommended to use the `POST /pedestal` operation instead. * If storage cells are used, the execution time might be few minutes. + * It also clears the image buffer, disables live rugnux analysis and removes the rugnux model. * * This is async function - one needs to use `POST /wait_till_done` to ensure operation is done. * diff --git a/frontend/src/client/sdk.gen.ts b/frontend/src/client/sdk.gen.ts index 9e0922bea..1da0a08e2 100644 --- a/frontend/src/client/sdk.gen.ts +++ b/frontend/src/client/sdk.gen.ts @@ -28,6 +28,7 @@ export type Options