// fill the response
ActivityOptions: adjustedOptions,
}
return response, nil
}
Frontier kind: Code frontier
unlabeled · c_efdde0a64034
2 tests · 4466 LOC · 196 files · introduces 0 tests · 44 LOC · 3 files
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedgo.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappinggo.temporal.io/server/common/retrypolicy/TestEnsureRetryPolicyDefaults/default_fields_are_set_go.temporal.io/server/common/retrypolicy/TestEnsureRetryPolicyDefaults/empty_policy_has_non-zero_defaultsgo.temporal.io/server/common/retrypolicy/TestEnsureRetryPolicyDefaults/non-retryable_errors_are_setgo.temporal.io/server/common/util/TestConvertPathToCamel/Already.CamelCasego.temporal.io/server/common/util/TestConvertPathToCamel/CamelCasego.temporal.io/server/common/util/TestConvertPathToCamel/Dot.Separatedgo.temporal.io/server/common/util/TestConvertPathToCamel/UPPERCASEgo.temporal.io/server/common/util/TestConvertPathToCamel/underscoreEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 44 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
// fill the response
ActivityOptions: adjustedOptions,
}
return response, nil
}
}
ao.ScheduleToStartTimeout = attributes.ScheduleToStartTimeout
ao.StartToCloseTimeout = attributes.StartToCloseTimeout
ao.HeartbeatTimeout = attributes.HeartbeatTimeout
return ao, nil
}
if workflow.GetActivityState(ai) == enumspb.PENDING_ACTIVITY_STATE_SCHEDULED {
// two options - activity can be in backoff, or scheduled (waiting to be started)
// if activity in backoff
// in this case there is already old retry task
// it will be ignored because of stamp mismatch
// if activity is scheduled and waiting to be started
// eventually matching service will call history service (recordActivityTaskStarted)
// history service will return error based on stamp. Task will be dropped
nextScheduledTime := workflow.GetNextScheduledTime(ai)
err = ms.RegenerateActivityRetryTask(ai, nextScheduledTime)
if err != nil {
return nil, err
}
// RegenerateActivityRetryTask mocks base method.
func (m *MockMutableState) RegenerateActivityRetryTask(ai *persistence.ActivityInfo, newScheduledTime time.Time) error {
mutable_state_mock.go
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RegenerateActivityRetryTask", ai, newScheduledTime)
ret0, _ := ret[0].(error)
return ret0
}
// RegenerateActivityRetryTask indicates an expected call of RegenerateActivityRetryTask.
func (mr *MockMutableStateMockRecorder) RegenerateActivityRetryTask(ai, newScheduledTime any) *gomock.Call {
mutable_state_mock.go
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegenerateActivityRetryTask", reflect.TypeOf((*MockMutableState)(nil).RegenerateActivityRetryTask), ai, newScheduledTime)
}
// RejectWorkflowExecutionUpdate mocks base method.
}
// there are two possible cases:
// * this is the first time activity was scheduled
// * in this case we should use current schedule time
// * this is a retry
// * next scheduled time will be calculated, based on the retry policy and last time when activity was completed
nextScheduledTime := ai.ScheduledTime.AsTime()
if ai.Attempt > 1 {
// calculate new schedule time
interval := backoff.ExponentialBackoffAlgorithm(ai.RetryInitialInterval, ai.RetryBackoffCoefficient, ai.Attempt)