task_manager.go ×5

Frontier kind: Code frontier

unlabeled · c_80a8cc148435

193 tests · 2989 LOC · 149 files · introduces 0 tests · 32 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges32 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
455 ranges2989 lines · 149 files · Browse complete extent
All tests (intent)
193 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.

3 files ranked by introduced lines: 32 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/task_manager.go 17 introduced LOC · 5 ranges

Open complete file

45 ctx context.Context,
46 request *CreateTaskQueueRequest,
47 > ) (*CreateTaskQueueResponse, error) { task_manager.go
48 > taskQueueInfo := request.TaskQueueInfo
49 > if taskQueueInfo.LastUpdateTime == nil {
50 panic("CreateTaskQueue encountered LastUpdateTime not set")
51 }
52 > if taskQueueInfo.ExpiryTime == nil && taskQueueInfo.GetKind() == enumspb.TASK_QUEUE_KIND_STICKY { task_manager.go
53 panic("CreateTaskQueue encountered ExpiryTime not set for sticky task queue")
54 }
55 > taskQueueInfoBlob, err := m.serializer.TaskQueueInfoToBlob(taskQueueInfo) task_manager.go
56 > if err != nil {
57 return nil, err
58 }
59
60 > internalRequest := &InternalCreateTaskQueueRequest{ task_manager.go
61 > NamespaceID: request.TaskQueueInfo.GetNamespaceId(),
62 > TaskQueue: request.TaskQueueInfo.GetName(),
63 > TaskType: request.TaskQueueInfo.GetTaskType(),
64 > TaskQueueKind: request.TaskQueueInfo.GetKind(),
65 > RangeID: request.RangeID,
66 > ExpiryTime: taskQueueInfo.ExpiryTime,
67 > TaskQueueInfo: taskQueueInfoBlob,
68 > }
69 > if err := m.taskStore.CreateTaskQueue(ctx, internalRequest); err != nil {
70 return nil, err
71 }
72 > return &CreateTaskQueueResponse{}, nil task_manager.go
73 }
74
go.temporal.io/server/api/persistence/v1/tasks.pb.go 12 introduced LOC · 3 ranges

Open complete file

297 }
298
299 > func (x *TaskQueueInfo) GetName() string { tasks.pb.go
300 > if x != nil {
301 > return x.Name
302 > }
303 return ""
304 }
305
306 > func (x *TaskQueueInfo) GetTaskType() v13.TaskQueueType { tasks.pb.go
307 > if x != nil {
308 > return x.TaskType
309 > }
310 return v13.TaskQueueType(0)
311 }
312
313 > func (x *TaskQueueInfo) GetKind() v13.TaskQueueKind { tasks.pb.go
314 > if x != nil {
315 > return x.Kind
316 > }
317 return v13.TaskQueueKind(0)
318 }
go.temporal.io/server/common/persistence/serialization/serializer.go 3 introduced LOC · 1 range

Open complete file

526 }
527
528 > func (t *serializerImpl) TaskQueueInfoToBlob(info *persistencespb.TaskQueueInfo) (*commonpb.DataBlob, error) { serializer.go
529 > return encodeBlob(info, t.encodingType)
530 > }
531
532 func (t *serializerImpl) TaskQueueInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.TaskQueueInfo, error) {