transfer_queue_active_task_executor.go ×3

Frontier kind: Code frontier

unlabeled · c_968f85622823

14 tests · 6783 LOC · 221 files · introduces 0 tests · 34 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges34 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1332 ranges6783 lines · 221 files · Browse complete extent
All tests (intent)
14 testsBrowse complete intent

Neighbourhood graph

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.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 34 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/transfer_queue_active_task_executor.go 26 introduced LOC · 3 ranges

Open complete file

314 return consts.ErrStaleReference
315 }
316 > err = CheckTaskVersion(t.shardContext, t.logger, mutableState.GetNamespaceEntry(), workflowTask.Version, transferTask.Version, transferTask) transfer_queue_active_task_executor.go
317 > if err != nil {
318 return err
319 }
323 // it can't be used here, because timeout timer was not created for it,
324 // because it used to be non-sticky when this transfer task was created .
325 > taskQueue, scheduleToStartTimeout := mutableState.TaskQueueScheduleToStartTimeout(transferTask.TaskQueue) transfer_queue_active_task_executor.go
326 >
327 > normalTaskQueueName := mutableState.GetExecutionInfo().TaskQueue
328 >
329 > directive := MakeDirectiveForWorkflowTask(mutableState)
330 > priority := mutableState.GetExecutionInfo().Priority
331 >
332 > // NOTE: Do not access mutableState after this lock is released.
333 > // It is important to release the workflow lock here, because pushWorkflowTask will call matching,
334 > // which will call history back (with RecordWorkflowTaskStarted), and it will try to get workflow lock again.
335 > release(nil)
336 >
337 > err = t.pushWorkflowTask(
338 > ctx,
339 > transferTask,
340 > taskQueue,
341 > scheduleToStartTimeout.AsDuration(),
342 > directive,
343 > priority,
344 > historyi.TransactionPolicyActive,
345 > )
346 >
347 > if _, ok := err.(*serviceerrors.StickyWorkerUnavailable); ok {
348 // sticky worker is unavailable, switch to original normal task queue
349 taskQueue = &taskqueuepb.TaskQueue{
go.temporal.io/server/api/matchingservice/v1/request_response.pb.go 8 introduced LOC · 1 range

Open complete file

872 func (*AddWorkflowTaskRequest) ProtoMessage() {}
873
874 > func (x *AddWorkflowTaskRequest) ProtoReflect() protoreflect.Message { request_response.pb.go
875 > mi := &file_temporal_server_api_matchingservice_v1_request_response_proto_msgTypes[5]
876 > if x != nil {
877 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
878 > if ms.LoadMessageInfo() == nil {
879 > ms.StoreMessageInfo(mi)
880 > }
881 > return ms
882 }
883 return mi.MessageOf(x)