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.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |