2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-08 18:53:34 +08:00

Update client to store groupKey under TaskMessage

This commit is contained in:
Ken Hibino
2022-03-06 05:53:59 -08:00
parent 47acff3684
commit 19229645ff
2 changed files with 3 additions and 0 deletions

View File

@@ -375,6 +375,7 @@ func (c *Client) EnqueueContext(ctx context.Context, task *Task, opts ...Option)
Deadline: deadline.Unix(),
Timeout: int64(timeout.Seconds()),
UniqueKey: uniqueKey,
GroupKey: opt.groupKey,
Retention: int64(opt.retention.Seconds()),
}
now := time.Now()