summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2023-08-01 13:54:26 +0200
committerPaul-Christian Volkmer2023-08-01 13:54:26 +0200
commitccf6908223743af7c9219571fea7f6ba48053463 (patch)
treeab20143626aa0d44b4441c4bb604a6d7803f5442 /src/main
parent7a7ea8c96d402604242a4d0203335ad12e30250a (diff)
Added statistics update using SSE for delete requests
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt b/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt
index cd3a525..8588ebe 100644
--- a/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt
+++ b/src/main/kotlin/dev/dnpm/etl/processor/services/RequestProcessor.kt
@@ -179,6 +179,8 @@ class RequestProcessor(
)
)
+ statisticsUpdateProducer.emitNext("", Sinks.EmitFailureHandler.FAIL_FAST)
+
return overallRequestStatus
} catch (e: Exception) {
requestRepository.save(
@@ -193,6 +195,8 @@ class RequestProcessor(
)
)
+ statisticsUpdateProducer.emitNext("", Sinks.EmitFailureHandler.FAIL_FAST)
+
return RequestStatus.ERROR
}
}