Skip to content

Commit

Permalink
Added ExecutionInfo field to InternalWorkflowSnapshot (#2392)
Browse files Browse the repository at this point in the history
* Added ExecutionInfo field

* Don't clean unit test results on every run

* Set ExecutionInfo in SerializeWorkflowSnapshot
  • Loading branch information
Jason Roselander authored Jan 20, 2022
1 parent 07cda1b commit e16c038
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ build-tests:
@printf $(COLOR) "Build tests..."
@go test -exec="true" -count=0 -tags=esintegration $(TEST_DIRS)

unit-test: clean-test-results
unit-test:
@printf $(COLOR) "Run unit tests..."
$(foreach UNIT_TEST_DIR,$(UNIT_TEST_DIRS),\
@go test $(UNIT_TEST_DIR) -timeout=$(TEST_TIMEOUT) $(TEST_TAG) -race | tee -a test.log \
Expand Down
1 change: 1 addition & 0 deletions common/persistence/execution_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ func (m *executionManagerImpl) SerializeWorkflowSnapshot(
RequestCancelInfos: make(map[int64]*commonpb.DataBlob),
SignalInfos: make(map[int64]*commonpb.DataBlob),

ExecutionInfo: input.ExecutionInfo,
ExecutionState: input.ExecutionState,
SignalRequestedIDs: make(map[string]struct{}),

Expand Down
1 change: 1 addition & 0 deletions common/persistence/persistenceInterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ type (
WorkflowID string
RunID string

ExecutionInfo *persistencespb.WorkflowExecutionInfo
ExecutionInfoBlob *commonpb.DataBlob
ExecutionState *persistencespb.WorkflowExecutionState
ExecutionStateBlob *commonpb.DataBlob
Expand Down

0 comments on commit e16c038

Please sign in to comment.