commit 257aaa9b9cf59d8e12d1b8c738d3c7882a8b5b4f
parent a8ea7743f089e148fb217aa797c227be6d22708a
Author: Antoine A <>
Date: Tue, 9 Sep 2025 15:30:29 +0200
nexus: non transient submit never fail with network error and recover
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/cli/EbicsSubmit.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/cli/EbicsSubmit.kt
@@ -137,7 +137,7 @@ class EbicsSubmit : EbicsCmd() {
try {
submitAll(client, cfg.submit.requireAck)
} catch (e: Exception) {
- throw Exception("Failed to submit payments", e)
+ e.fmtLog(logger)
}
// TODO take submitBatch taken time in the delay
delay(cfg.submit.frequency.toKotlinDuration())
diff --git a/testbench/src/main/kotlin/Main.kt b/testbench/src/main/kotlin/Main.kt
@@ -114,7 +114,7 @@ class Cli : CliktCommand() {
CHECKPOINT_TIME_OF_DAY = 16:52
[nexus-submit]
- FREQUENCY = 1h
+ FREQUENCY = 1m
[libeufin-nexusdb-postgres]
CONFIG = postgres:///libeufintestbench
@@ -214,6 +214,7 @@ class Cli : CliktCommand() {
put("list-ack", "List initiated payments pending manual submission acknowledgement", "list initiated $flags --awaiting-ack")
put("wss", "Listen to notification over websocket", "testing wss $debugFlags")
put("submit", "Submit pending transactions", "ebics-submit $ebicsFlags")
+ put("submit-wait", "Submit pending transaction", "ebics-submit $debugFlags")
put("export", "Export pending batches as pain001 messages", "manual export $flags payments.zip")
putArgs("import", "Import xml files in root directory") {
buildString {