You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zap.L().Sugar().Infof("Add Executor - Batch size wrongly configured with %d, using default value %d", config.BatchSize, DefaultBatchSize)
69
71
config.BatchSize=DefaultBatchSize
70
72
}
73
+
ifconfig.OperationTimeout<=0 {
74
+
zap.L().Sugar().Infof("Add Executor - Operation timeout wrongly configured with %v, using default value %v", config.OperationTimeout, DefaultOperationTimeout)
75
+
config.OperationTimeout=DefaultOperationTimeout
76
+
}
71
77
return&Executor{
72
78
roomManager,
73
79
storage,
@@ -119,7 +125,7 @@ func (ex *Executor) Execute(ctx context.Context, op *operation.Operation, defini
// Sleep longer than the timeout to trigger context deadline
348
+
case<-time.After(100*time.Millisecond):
349
+
return&gameRoom, &gameRoomInstance, nil
350
+
// Should return context deadline exceeded
351
+
case<-ctx.Done():
352
+
returnnil, nil, ctx.Err()
353
+
}
354
+
},
355
+
).Times(1)
356
+
357
+
operationsManager.EXPECT().AppendOperationEventToExecutionHistory(gomock.Any(), &op, "more rooms failed than succeeded, errors: 1 and successes: 0 of amount: 1")
// NewCreateSchedulerVersionConfig instantiate a new CreateSchedulerVersionConfig to be used by the NewSchedulerVersion operation to customize its configuration.
0 commit comments