mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
Update comments
This commit is contained in:
parent
be3b774b51
commit
ac3190a0d5
3
asynq.go
3
asynq.go
@ -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
1
rdb.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user