2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-11-10 11:31:58 +08:00

Update comments

This commit is contained in:
Ken Hibino 2019-11-23 16:44:22 -08:00
parent be3b774b51
commit ac3190a0d5
2 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,8 @@ import "github.com/google/uuid"
/*
TODOs:
- [P0] Write tests
- [P0] Add heartbeats and rescuer
- [P0] Make all moving operations atomic
- [P1] Add Support for multiple queues
- [P1] Add Support for multiple queues and priority
- [P1] User defined max-retry count
- [P2] Web UI
*/

1
rdb.go
View File

@ -124,6 +124,7 @@ func (r *rdb) zRangeByScore(key string, opt *redis.ZRangeBy) ([]*taskMessage, er
// move moves taskMessage from zfrom to the specified queue.
func (r *rdb) move(from string, msg *taskMessage) error {
// TODO(hibiken): Lua script, make this atomic.
bytes, err := json.Marshal(msg)
if err != nil {
return errSerializeTask