MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / TaskStatus

Method TaskStatus

worker/queue.go:69–79  ·  view source on GitHub ↗

TaskStatus retrieves metadata for a given task ID.

(ctx context.Context, req *pb.TaskStatusRequest,
)

Source from the content-addressed store, hash-verified

67
68// TaskStatus retrieves metadata for a given task ID.
69func (*grpcWorker) TaskStatus(ctx context.Context, req *pb.TaskStatusRequest,
70) (*pb.TaskStatusResponse, error) {
71 taskId := req.GetTaskId()
72 meta, err := Tasks.get(taskId)
73 if err != nil {
74 return nil, err
75 }
76
77 resp := &pb.TaskStatusResponse{TaskMeta: meta.uint64()}
78 return resp, nil
79}
80
81var (
82 // Tasks is a global persistent task queue.

Callers

nothing calls this directly

Calls 3

GetTaskIdMethod · 0.80
uint64Method · 0.80
getMethod · 0.45

Tested by

no test coverage detected