Skip to content

Commit

Permalink
Fix record-marker-failed event cause
Browse files Browse the repository at this point in the history
Also document 'marker_name' property
  • Loading branch information
EpicWink committed Jan 5, 2022
1 parent b7ff956 commit dcb8a32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/swf_typed/_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ class ContinueAsNewWorkflowExecutionFailedEvent(Event):

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

cause: ContinueAsNewWorkflowExecutionFailureCause # TODO: commit
cause: ContinueAsNewWorkflowExecutionFailureCause
"""Failure cause."""

decision_event_id: int
Expand Down Expand Up @@ -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."""
Expand All @@ -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
Expand Down

0 comments on commit dcb8a32

Please sign in to comment.