Skip to content

Commit

Permalink
Delete running workflow executions (#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin authored May 12, 2022
1 parent a089ae5 commit cf4153c
Show file tree
Hide file tree
Showing 35 changed files with 1,039 additions and 490 deletions.
566 changes: 352 additions & 214 deletions api/persistence/v1/executions.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions common/persistence/serialization/task_serializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ func (s *TaskSerializer) transferCloseTaskToProto(
Version: closeTask.Version,
TaskId: closeTask.TaskID,
VisibilityTime: timestamp.TimePtr(closeTask.VisibilityTimestamp),
DeleteAfterClose: closeTask.DeleteAfterClose,
}
}

Expand All @@ -520,6 +521,7 @@ func (s *TaskSerializer) transferCloseTaskFromProto(
VisibilityTimestamp: *closeTask.VisibilityTime,
TaskID: closeTask.TaskId,
Version: closeTask.Version,
DeleteAfterClose: closeTask.DeleteAfterClose,
}
}

Expand Down
4 changes: 4 additions & 0 deletions host/onebox.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,10 @@ func (c *temporalImpl) overrideHistoryDynamicConfig(client *dynamicClient) {
if c.historyConfig.HistoryCountLimitError != 0 {
client.OverrideValue(dynamicconfig.HistoryCountLimitError, c.historyConfig.HistoryCountLimitError)
}

// For DeleteWorkflowExecution tests
client.OverrideValue(dynamicconfig.TransferProcessorUpdateAckInterval, 1*time.Second)
client.OverrideValue(dynamicconfig.VisibilityProcessorUpdateAckInterval, 1*time.Second)
}

func (c *temporalImpl) RefreshNamespaceCache() {
Expand Down
Loading

0 comments on commit cf4153c

Please sign in to comment.