Add batch-llm module: 100,000 synthetic tickets classified by a ChatClient in a Spring Batch 6 chunk step with Resilience4j rate limiting and retry, skip-and-record for malformed JSON, restart after kill -9 in a second JVM, and a per-chunk cost ledger. The model is a deterministic simulated ChatModel; prices are configurable placeholders. No provider called.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4VQVEJWetTT1dYzyJ
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Same tickets, same fault plan: the crashed-and-resumed database must hold exactly the clean run's results.
|
||||
set -euo pipefail
|
||||
source "$(dirname "$0")/common.sh"
|
||||
{ echo "# Clean run vs crashed-and-resumed run"; echo
|
||||
for f in target/clean/run.log target/crash/jvm2.log; do
|
||||
echo "## $f"
|
||||
grep -E "^tickets total|^ledger|results checksum|billed calls the ledger" "$f"
|
||||
echo
|
||||
done; } > output/10-compare.txt
|
||||
cat output/10-compare.txt
|
||||
a=$(grep checksum target/clean/run.log | awk '{print $NF}'); b=$(grep checksum target/crash/jvm2.log | awk '{print $NF}')
|
||||
[ "$a" = "$b" ] && echo "checksums identical: $a" | tee -a output/10-compare.txt || { echo "CHECKSUMS DIFFER $a $b" | tee -a output/10-compare.txt; exit 1; }
|
||||
Reference in New Issue
Block a user