From dcb8a32fed5a47aa13e917931db0db0660abe448 Mon Sep 17 00:00:00 2001 From: Laurie O Date: Wed, 5 Jan 2022 11:31:17 +1000 Subject: [PATCH] Fix record-marker-failed event cause Also document 'marker_name' property --- src/swf_typed/_history.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/swf_typed/_history.py b/src/swf_typed/_history.py index e890646..f6d4581 100644 --- a/src/swf_typed/_history.py +++ b/src/swf_typed/_history.py @@ -681,7 +681,7 @@ class ContinueAsNewWorkflowExecutionFailedEvent(Event): type: t.ClassVar[str] = "ContinueAsNewWorkflowExecutionFailed" - cause: ContinueAsNewWorkflowExecutionFailureCause # TODO: commit + cause: ContinueAsNewWorkflowExecutionFailureCause """Failure cause.""" decision_event_id: int @@ -1063,6 +1063,7 @@ class RecordMarkerFailedEvent(Event): type: t.ClassVar[str] = "RecordMarkerFailed" marker_name: str + """Marker name.""" decision_event_id: int """Marker record decision event ID.""" @@ -1081,7 +1082,7 @@ def from_api(cls, data): @property def cause(self) -> DecisionFailureCause: """Failure cause.""" - return DecisionFailureCause.operation_not_permitted + return DecisionFailureCause.unauthorised @dataclasses.dataclass