Add temporal module: workflows, activities, retries, saga, signals, versioning, Spring Boot starter
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
retry policy: initial 1s, coefficient 2.0, maximum attempts 4
|
||||
|
||||
== two transient failures, then success ==
|
||||
fetchRate(USD/INR) attempt 1
|
||||
fetchRate(USD/INR) attempt 2
|
||||
fetchRate(USD/INR) attempt 3
|
||||
result: USD/INR=83.21
|
||||
workflow history spans 3 s (1 s + 2 s of backoff); wall clock under 5 s: true
|
||||
|
||||
== always failing: attempts exhausted ==
|
||||
fetchRate(USD/INR) attempt 1
|
||||
fetchRate(USD/INR) attempt 2
|
||||
fetchRate(USD/INR) attempt 3
|
||||
fetchRate(USD/INR) attempt 4
|
||||
workflow failed: ActivityFailure -> ApplicationFailure: message='503 from rate service', type='java.lang.IllegalStateException', nonRetryable=false
|
||||
|
||||
== non-retryable ApplicationFailure ==
|
||||
fetchRate(USD/INR) attempt 1
|
||||
workflow failed: type=UnknownPair nonRetryable=true message=unknown currency pair USD/INR
|
||||
Reference in New Issue
Block a user