Skip to content

Commit dcb8a32

Browse files
committed
Fix record-marker-failed event cause
Also document 'marker_name' property
1 parent b7ff956 commit dcb8a32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/swf_typed/_history.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ class ContinueAsNewWorkflowExecutionFailedEvent(Event):
681681

682682
type: t.ClassVar[str] = "ContinueAsNewWorkflowExecutionFailed"
683683

684-
cause: ContinueAsNewWorkflowExecutionFailureCause # TODO: commit
684+
cause: ContinueAsNewWorkflowExecutionFailureCause
685685
"""Failure cause."""
686686

687687
decision_event_id: int
@@ -1063,6 +1063,7 @@ class RecordMarkerFailedEvent(Event):
10631063
type: t.ClassVar[str] = "RecordMarkerFailed"
10641064

10651065
marker_name: str
1066+
"""Marker name."""
10661067

10671068
decision_event_id: int
10681069
"""Marker record decision event ID."""
@@ -1081,7 +1082,7 @@ def from_api(cls, data):
10811082
@property
10821083
def cause(self) -> DecisionFailureCause:
10831084
"""Failure cause."""
1084-
return DecisionFailureCause.operation_not_permitted
1085+
return DecisionFailureCause.unauthorised
10851086

10861087

10871088
@dataclasses.dataclass

0 commit comments

Comments
 (0)