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

TypeAlias TaskMeta

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

TaskMeta stores a timestamp, a TaskKind and a Status. The format of this is: 32 bits: UNIX timestamp (overflows on 2106-02-07) 16 bits: TaskKind 16 bits: TaskStatus

Source from the content-addressed store, hash-verified

331// 16 bits: TaskKind
332// 16 bits: TaskStatus
333type TaskMeta uint64
334
335func newTaskMeta(kind TaskKind, status TaskStatus) TaskMeta {
336 now := time.Now().UTC().Unix()

Callers 6

resolveTaskFunction · 0.92
InitTasksFunction · 0.85
EnqueueMethod · 0.85
getMethod · 0.85
runMethod · 0.85
newTaskMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected