mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
fix(swf): retain Lambda invocation failure causes (#7450)
Keep the original unexpected Lambda invocation exception and nested cause in the existing SWF warning. Preserve modeled failures, history reason/details, scheduled decision and invocation semantics. Qualify against this public branch without copying unrelated private consumers. (cherry picked from commit d33318b90dea5e15468b669aa93743d23bb550ae) Signed-off-by: Andre Kurait <AndreKurait@gmail.com> Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
1 parent
f6a9f46bf9
commit
ad8cd14724
2 files changed
+62
-1
No files matched your search
@@ -1261,7 +1261,7 @@ public class SwfService implements Resettable {
|
||||
reason = e.getErrorCode();
|
||||
details = e.getMessage();
|
||||
} catch (RuntimeException e) {
|
||||
LOG.warnv("SWF Lambda invocation {0} ({1}) failed: {2}",
|
||||
LOG.warnv(e, "SWF Lambda invocation {0} ({1}) failed: {2}",
|
||||
pending.id(), pending.name(), e.getMessage());
|
||||
eventType = "LambdaFunctionFailed";
|
||||
reason = e.getClass().getSimpleName();
|
||||
|
||||
Reference in new issue
Block a user