JFJochStateMachine: Use busy state for configuring indexing threads

This commit is contained in:
2025-11-10 14:26:49 +01:00
parent 0fe4fd9914
commit 2f2d7a4083
+2 -3
View File
@@ -285,12 +285,11 @@ void JFJochStateMachine::Initialize() {
ResetError(); // Clear error, we don't care what was it
logger.Info("Initialize");
SetState(JFJochState::Busy, "Configuring indexing threads", BrokerStatus::MessageSeverity::Info);
try {
services.SetupIndexing(experiment.GetIndexingSettings());
} catch (const JFJochException &e) {
SetState(JFJochState::Error,
e.what(),
BrokerStatus::MessageSeverity::Error);
SetState(JFJochState::Error, e.what(), BrokerStatus::MessageSeverity::Error);
throw;
}
SetState(JFJochState::Busy, "Configuring detector", BrokerStatus::MessageSeverity::Info);