mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-23 01:00:17 +08:00
Change TaskMessage.ID type from uuid.UUID to string
This commit is contained in:
parent
82e71c6c3f
commit
3da651fd6d
@ -30,7 +30,7 @@ const metadataCtxKey ctxKey = 0
|
|||||||
// New returns a context and cancel function for a given task message.
|
// New returns a context and cancel function for a given task message.
|
||||||
func New(msg *base.TaskMessage, deadline time.Time) (context.Context, context.CancelFunc) {
|
func New(msg *base.TaskMessage, deadline time.Time) (context.Context, context.CancelFunc) {
|
||||||
metadata := taskMetadata{
|
metadata := taskMetadata{
|
||||||
id: msg.ID.String(),
|
id: msg.ID,
|
||||||
maxRetry: msg.Retry,
|
maxRetry: msg.Retry,
|
||||||
retryCount: msg.Retried,
|
retryCount: msg.Retried,
|
||||||
qname: msg.Queue,
|
qname: msg.Queue,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user