Ken Hibino
99c7ebeef2
Add migration command in CLI
2021-06-29 16:34:21 -07:00
Ken Hibino
bf54621196
Update example code in README
2021-06-29 16:34:21 -07:00
Ken Hibino
27baf6de0d
Fix error in readme
2021-06-29 16:34:21 -07:00
Ken Hibino
1bd0bee1e5
Fix CLI build
2021-06-29 16:34:21 -07:00
Ken Hibino
a9feec5967
Change TaskInfo to use public fields instead of methods
2021-06-29 16:34:21 -07:00
Ken Hibino
e01c6379c8
Fix lua script for redis-cluster mode
2021-06-29 16:34:21 -07:00
Ken Hibino
a0df047f71
Use md5 to generate checksum for unique key
2021-06-29 16:34:21 -07:00
Ken Hibino
68dd6d9a9d
(fix): Clear unique lock when task is deleted via Inspector
2021-06-29 16:34:21 -07:00
Ken Hibino
6cce31a134
Fix recoverer test
2021-06-29 16:34:21 -07:00
Ken Hibino
f9d7af3def
Update ProcessorRetry test
2021-06-29 16:34:21 -07:00
Ken Hibino
b0321fb465
Format payload bytes in CLI output
2021-06-29 16:34:21 -07:00
Ken Hibino
7776c7ae53
Rename cli subcommand to not to use dash
2021-06-29 16:34:21 -07:00
Ken Hibino
709ca79a2b
Add task inspect command
2021-06-29 16:34:21 -07:00
Ken Hibino
08d8f0b37c
Add String method to TaskState
2021-06-29 16:34:21 -07:00
Ken Hibino
385323b679
Minor fix in queue command
2021-06-29 16:34:21 -07:00
Ken Hibino
77604af265
Fix asynq CLI build
2021-06-29 16:34:21 -07:00
Ken Hibino
4765742e8a
Add Inspector.GetTaskInfo
2021-06-29 16:34:21 -07:00
Ken Hibino
68839dc9d3
Fix lua scripts for redis cluster
2021-06-29 16:34:21 -07:00
Ken Hibino
8922d2423a
Define RDB.GetTaskInfo
2021-06-29 16:34:21 -07:00
Ken Hibino
b358de907e
Rename Inspector.CurrentStats to GetQueueInfo
2021-06-29 16:34:21 -07:00
Ken Hibino
8ee1825e67
Rename Inspector.CancelActiveTask to CancelProcessing
2021-06-29 16:34:21 -07:00
Ken Hibino
c8bda26bed
Make NodeCluster fields read-only
2021-06-29 16:34:21 -07:00
Ken Hibino
8aeeb61c9d
Misc cleanup
2021-06-29 16:34:21 -07:00
Ken Hibino
96c51fdc23
Update WorkerInfo and remove unnecessary types
2021-06-29 16:34:21 -07:00
Ken Hibino
ea9086fd8b
Update Inspector.List*Task methods to return ErrQueueNotFound
2021-06-29 16:34:21 -07:00
Ken Hibino
e63d51da0c
Update Inspector.ListArchivedTasks
2021-06-29 16:34:21 -07:00
Ken Hibino
cd351d49b9
Add LastFailedAt to TaskInfo
2021-06-29 16:34:21 -07:00
Ken Hibino
87264b66f3
Record last_failed_at time on Retry or Archive event
2021-06-29 16:34:21 -07:00
Ken Hibino
62168b8d0d
Add LastFailedAt field to TaskMessage
2021-06-29 16:34:21 -07:00
Ken Hibino
840f7245b1
Update List methods (expect for ListArchived)
2021-06-29 16:34:21 -07:00
Ken Hibino
12f4c7cf6e
Move inspeq package content to asynq package
2021-06-29 16:34:21 -07:00
Ken Hibino
0ec3b55e6b
Replace ArchiveTaskByKey with ArchiveTask in Inspector
2021-06-29 16:34:21 -07:00
Ken Hibino
4bcc5ab6aa
Replace DeleteTaskByKey with DeleteTask in Inspector
2021-06-29 16:34:21 -07:00
Ken Hibino
456edb6b71
Replace RunTaskByKey with RunTask in Inspector
2021-06-29 16:34:21 -07:00
Ken Hibino
b835090ad8
Update Client.Enqueue to return TaskInfo
2021-06-29 16:34:21 -07:00
Ken Hibino
09cbea66f6
Define TaskInfo type
2021-06-29 16:34:21 -07:00
Ken Hibino
b9c2572203
Refactor redis keys and store messages in protobuf
...
Changes:
- Task messages are stored under "asynq:{<qname>}:t:<task_id>" key in redis, value is a HASH type and message are stored under "msg" key in the hash. The hash also stores "deadline", "timeout".
- Redis LIST and ZSET stores task message IDs
- Task messages are serialized using protocol buffer
2021-06-29 16:34:21 -07:00
Ken Hibino
0bf767cf21
Add TaskState type to base package
2021-06-29 16:34:21 -07:00
Ken Hibino
1812d05d21
Fix build
2021-06-29 16:34:21 -07:00
Ken Hibino
4af65d5fa5
Update RDB methods with new errors package
2021-06-29 16:34:21 -07:00
Ken Hibino
a19ad19382
Update RDB.Dequeue with new errors package
2021-06-29 16:34:21 -07:00
Ken Hibino
8117ce8972
Minor fixes
2021-06-29 16:34:21 -07:00
Ken Hibino
d98ecdebb4
Update RDB.EnqueueUnique and RDB.ScheduleUnique with specific errors
2021-06-29 16:34:21 -07:00
Ken Hibino
ffe9aa74b3
Add errors.RedisCommandError type
2021-06-29 16:34:21 -07:00
Ken Hibino
d2d4029aba
Update RDB.CurrentStats and RDB.HistoricalStats with specific errors
2021-06-29 16:34:21 -07:00
Ken Hibino
76bd865ebc
Update RDB.RemoveQueue with specific error types
2021-06-29 16:34:21 -07:00
Ken Hibino
136d1c9ea9
Update rdb.List* methods with specific errors
2021-06-29 16:34:21 -07:00
Ken Hibino
52e04355d3
Return QueueNotFoundError from DeleteAll* methods
2021-06-29 16:34:21 -07:00
Ken Hibino
cde3e57c6c
Update RDB.RunAll* methods with task state
2021-06-29 16:34:21 -07:00
Ken Hibino
dd66acef1b
Return QueueNotFoundError from ArchiveAll* methods
2021-06-29 16:34:21 -07:00