Skip to content

Commit

Permalink
Return run ID for describe workflow execution (cadence-workflow#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Jan 5, 2019
1 parent f711e63 commit c88640a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions service/history/historyEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/uber/cadence/service/worker/sysworkflow"
"time"

"github.com/uber/cadence/service/worker/sysworkflow"

"github.com/pborman/uuid"
"github.com/uber-common/bark"
h "github.com/uber/cadence/.gen/go/history"
Expand Down Expand Up @@ -794,7 +795,10 @@ func (e *historyEngineImpl) DescribeWorkflowExecution(ctx context.Context,
ChildPolicy: common.ChildPolicyPtr(workflow.ChildPolicyTerminate),
},
WorkflowExecutionInfo: &workflow.WorkflowExecutionInfo{
Execution: request.Request.Execution,
Execution: &workflow.WorkflowExecution{
WorkflowId: common.StringPtr(executionInfo.WorkflowID),
RunId: common.StringPtr(executionInfo.RunID),
},
Type: &workflow.WorkflowType{Name: common.StringPtr(executionInfo.WorkflowTypeName)},
StartTime: common.Int64Ptr(executionInfo.StartTimestamp.UnixNano()),
HistoryLength: common.Int64Ptr(msBuilder.GetNextEventID() - common.FirstEventID),
Expand Down

0 comments on commit c88640a

Please sign in to comment.