2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-19 15:08:55 +08:00

Use int64 type for Timeout and Deadline in TaskMessage

This commit is contained in:
Ken Hibino
2020-06-22 08:33:58 -07:00
parent 379da8f7a2
commit 7e942ec241
4 changed files with 46 additions and 46 deletions

View File

@@ -94,7 +94,7 @@ type TaskMessage struct {
// if retry count is remaining. Otherwise it will be moved to the dead queue.
//
// Use zero to indicate no timeout.
Timeout int
Timeout int64
// Deadline specifies the deadline for the task in Unix time,
// the number of seconds elapsed since January 1, 1970 UTC.
@@ -102,7 +102,7 @@ type TaskMessage struct {
// if retry count is remaining. Otherwise it will be moved to the dead queue.
//
// Use zero to indicate no deadline.
Deadline int
Deadline int64
// UniqueKey holds the redis key used for uniqueness lock for this task.
//