package context

Import Path
	github.com/hibiken/asynq/internal/context (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files context.go
Package-Level Functions (total 5)
GetMaxRetry extracts maximum retry from a context, if any. Return value n indicates the maximum number of times the associated task can be retried if ProcessTask returns a non-nil error.
GetQueueName extracts queue name from a context, if any. Return value qname indicates which queue the task was pulled from.
GetRetryCount extracts retry count from a context, if any. Return value n indicates the number of times associated task has been retried so far.
GetTaskID extracts a task ID from a context, if any. ID of a task is guaranteed to be unique. ID of a task doesn't change if the task is being retried.
New returns a context and cancel function for a given task message.