task_queue_commands.go ×5

Frontier kind: Joint frontier

unlabeled · c_84d48d214690

1 test · 3397 LOC · 142 files · introduces 1 test · 44 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges44 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
477 ranges3397 lines · 142 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

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

go.temporal.io/server/tools/tdbg/task_queue_commands.go 33 introduced LOC · 5 ranges

Open complete file

184
185 // AdminGetTaskQueueUserData returns the per-type user data for a task queue partition
186 > func AdminGetTaskQueueUserData(c *cli.Context, clientFactory ClientFactory) error { task_queue_commands.go
187 > namespace, err := getRequiredOption(c, FlagNamespace)
188 > if err != nil {
189 return err
190 }
191
192 > tqName, err := getRequiredOption(c, FlagTaskQueue) task_queue_commands.go
193 > if err != nil {
194 return err
195 }
196
197 > tlTypeInt, err := StringToEnum(c.String(FlagTaskQueueType), enumspb.TaskQueueType_value) task_queue_commands.go
198 > if err != nil {
199 > return fmt.Errorf("invalid task queue type: %w", err)
200 > }
201 > tqType := enumspb.TaskQueueType(tlTypeInt)
202 > if tqType == enumspb.TASK_QUEUE_TYPE_UNSPECIFIED {
203 > tqType = enumspb.TASK_QUEUE_TYPE_WORKFLOW
204 > }
205
206 > partitionID := 0 task_queue_commands.go
207 > if c.IsSet(FlagPartitionID) {
208 > partitionID = c.Int(FlagPartitionID)
209 > }
210
211 > client := clientFactory.AdminClient(c) task_queue_commands.go
212 > req := &adminservice.GetTaskQueueUserDataRequest{
213 > Namespace: namespace,
214 > TaskQueue: tqName,
215 > TaskQueueType: tqType,
216 > PartitionId: int32(partitionID),
217 > }
218 >
219 > ctx, cancel := newContext(c)
220 > defer cancel()
221 > response, e := client.GetTaskQueueUserData(ctx, req)
222 > if e != nil {
223 > return fmt.Errorf("unable to get Task Queue User Data: %w", e)
224 > }
225 > prettyPrintJSONObject(c, response)
226 > return nil
227 }
228
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 8 introduced LOC · 1 range

Open complete file

5455 func (*GetTaskQueueUserDataResponse) ProtoMessage() {}
5456
5457 > func (x *GetTaskQueueUserDataResponse) ProtoReflect() protoreflect.Message { request_response.pb.go
5458 > mi := &file_temporal_server_api_adminservice_v1_request_response_proto_msgTypes[89]
5459 > if x != nil {
5460 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
5461 > if ms.LoadMessageInfo() == nil {
5462 > ms.StoreMessageInfo(mi)
5463 > }
5464 > return ms
5465 }
5466 return mi.MessageOf(x)
go.temporal.io/server/tools/tdbg/tdbg_commands.go 3 introduced LOC · 1 range

Open complete file

744 },
745 },
746 > Action: func(c *cli.Context) error { tdbg_commands.go
747 > return AdminGetTaskQueueUserData(c, clientFactory)
748 > },
749 },
750 }