Skip to content

Commit b480672

Browse files
committed
Use scenarioRunId instead of csmSimulationRun for azureDataExplorerClient.getStateFor in order to match modification from probes defined in SDK
1 parent c1f9c44 commit b480672

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scenariorun/src/main/kotlin/com/cosmotech/scenariorun/service/ScenarioRunServiceImpl.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,7 @@ class ScenarioRunServiceImpl(
840840
"Running" -> ScenarioRunState.Running
841841
"Succeeded" -> {
842842
logger.trace(
843-
"checkDataIngestionState=$checkDataIngestionState," +
844-
"csmSimulationRun=$csmSimulationRun")
843+
"checkDataIngestionState=$checkDataIngestionState," + "scenarioRunId=$scenarioRunId")
845844
if (checkDataIngestionState == true && csmSimulationRun != null) {
846845
logger.debug(
847846
"ScenarioRun $scenarioRunId (csmSimulationRun=$csmSimulationRun) reported as " +
@@ -851,7 +850,7 @@ class ScenarioRunServiceImpl(
851850
organizationId = organizationId,
852851
workspaceKey = workspaceKey,
853852
scenarioRunId = scenarioRunId!!,
854-
csmSimulationRun = csmSimulationRun,
853+
csmSimulationRun = scenarioRunId,
855854
)
856855
logger.debug(
857856
"Data Ingestion status for ScenarioRun $scenarioRunId " +

0 commit comments

Comments
 (0)