File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ func PollForActivityTaskResponse(t *shared.PollForActivityTaskResponse) *apiv1.P
210
210
WorkflowType : WorkflowType (t .WorkflowType ),
211
211
WorkflowDomain : t .GetWorkflowDomain (),
212
212
Header : Header (t .Header ),
213
+ AutoConfigHint : AutoConfigHint (t .AutoConfigHint ),
213
214
}
214
215
}
215
216
@@ -234,6 +235,7 @@ func PollForDecisionTaskResponse(t *shared.PollForDecisionTaskResponse) *apiv1.P
234
235
Queries : WorkflowQueryMap (t .Queries ),
235
236
NextEventId : t .GetNextEventId (),
236
237
TotalHistoryBytes : t .GetTotalHistoryBytes (),
238
+ AutoConfigHint : AutoConfigHint (t .AutoConfigHint ),
237
239
}
238
240
}
239
241
Original file line number Diff line number Diff line change @@ -77,6 +77,16 @@ func ActivityType(t *shared.ActivityType) *apiv1.ActivityType {
77
77
}
78
78
}
79
79
80
+ func AutoConfigHint (t * shared.AutoConfigHint ) * apiv1.AutoConfigHint {
81
+ if t == nil {
82
+ return nil
83
+ }
84
+ return & apiv1.AutoConfigHint {
85
+ EnableAutoConfig : t .GetEnableAutoConfig (),
86
+ PollerWaitTimeInMs : t .GetPollerWaitTimeInMs (),
87
+ }
88
+ }
89
+
80
90
func WorkflowType (t * shared.WorkflowType ) * apiv1.WorkflowType {
81
91
if t == nil {
82
92
return nil
Original file line number Diff line number Diff line change @@ -208,6 +208,10 @@ var (
208
208
ActivityLocalDispatchInfoMap = map [string ]* apiv1.ActivityLocalDispatchInfo {
209
209
ActivityID : & ActivityLocalDispatchInfo ,
210
210
}
211
+ AutoConfigHint = apiv1.AutoConfigHint {
212
+ EnableAutoConfig : true ,
213
+ PollerWaitTimeInMs : 100 ,
214
+ }
211
215
TaskListMetadata = apiv1.TaskListMetadata {
212
216
MaxTasksPerSecond : & gogo.DoubleValue {Value : RatePerSecond },
213
217
}
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ var (
199
199
StartedTime : Timestamp2 ,
200
200
Queries : WorkflowQueryMap ,
201
201
NextEventId : EventID3 ,
202
+ AutoConfigHint : & AutoConfigHint ,
202
203
}
203
204
RespondDecisionTaskCompletedRequest = apiv1.RespondDecisionTaskCompletedRequest {
204
205
TaskToken : TaskToken ,
@@ -245,6 +246,7 @@ var (
245
246
WorkflowType : & WorkflowType ,
246
247
WorkflowDomain : DomainName ,
247
248
Header : & Header ,
249
+ AutoConfigHint : & AutoConfigHint ,
248
250
}
249
251
RespondActivityTaskCompletedRequest = apiv1.RespondActivityTaskCompletedRequest {
250
252
TaskToken : TaskToken ,
You can’t perform that action at this time.
0 commit comments