Skip to content

Commit

Permalink
enable step created->failed (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Jul 1, 2024
1 parent 27da621 commit eb7478a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/forge/sdk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class StepStatus(StrEnum):

def can_update_to(self, new_status: StepStatus) -> bool:
allowed_transitions: dict[StepStatus, set[StepStatus]] = {
StepStatus.created: {StepStatus.running, StepStatus.canceled},
StepStatus.created: {StepStatus.running, StepStatus.failed, StepStatus.canceled},
StepStatus.running: {StepStatus.completed, StepStatus.failed, StepStatus.canceled},
StepStatus.failed: set(),
StepStatus.completed: set(),
Expand Down

0 comments on commit eb7478a

Please sign in to comment.