Skip to content

Commit

Permalink
Add adapater functions for delayStart and jitterStart in child workfl…
Browse files Browse the repository at this point in the history
…ow (#6201)
  • Loading branch information
timl3136 authored Jul 30, 2024
1 parent edf4861 commit 58cbab3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/types/mapper/thrift/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -5212,6 +5212,8 @@ func FromStartChildWorkflowExecutionInitiatedEventAttributes(t *types.StartChild
Header: FromHeader(t.Header),
Memo: FromMemo(t.Memo),
SearchAttributes: FromSearchAttributes(t.SearchAttributes),
DelayStartSeconds: t.DelayStartSeconds,
JitterStartSeconds: t.JitterStartSeconds,
FirstRunAtTimestamp: t.FirstRunAtTimestamp,
}
}
Expand All @@ -5238,6 +5240,8 @@ func ToStartChildWorkflowExecutionInitiatedEventAttributes(t *shared.StartChildW
Header: ToHeader(t.Header),
Memo: ToMemo(t.Memo),
SearchAttributes: ToSearchAttributes(t.SearchAttributes),
DelayStartSeconds: t.DelayStartSeconds,
JitterStartSeconds: t.JitterStartSeconds,
FirstRunAtTimestamp: t.FirstRunAtTimestamp,
}
}
Expand Down
2 changes: 2 additions & 0 deletions common/types/testdata/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ var (
Header: &Header,
Memo: &Memo,
SearchAttributes: &SearchAttributes,
DelayStartSeconds: &Duration3,
JitterStartSeconds: &Duration4,
FirstRunAtTimestamp: &Timestamp1,
}
StartChildWorkflowExecutionFailedEventAttributes = types.StartChildWorkflowExecutionFailedEventAttributes{
Expand Down

0 comments on commit 58cbab3

Please sign in to comment.