2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 11:05: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: TODOs:
- [P0] Write tests - [P0] Write tests
- [P0] Add heartbeats and rescuer
- [P0] Make all moving operations atomic - [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 - [P1] User defined max-retry count
- [P2] Web UI - [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. // move moves taskMessage from zfrom to the specified queue.
func (r *rdb) move(from string, msg *taskMessage) error { func (r *rdb) move(from string, msg *taskMessage) error {
// TODO(hibiken): Lua script, make this atomic.
bytes, err := json.Marshal(msg) bytes, err := json.Marshal(msg)
if err != nil { if err != nil {
return errSerializeTask return errSerializeTask