2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-24 22:46:11 +08:00

Fix merge conflicts

This commit is contained in:
Ken Hibino
2021-04-04 14:09:14 -07:00
parent 7ba05e6a78
commit 978c608124
4 changed files with 0 additions and 138 deletions

View File

@@ -488,27 +488,6 @@ func (r *RDB) listZSetEntries(key, qname string, pgn Pagination) ([]*base.TaskIn
if err != nil {
return nil, err
}
<<<<<<< HEAD
var zs []base.Z
for i := 0; i < len(data); i += 2 {
s, err := cast.ToStringE(data[i])
if err != nil {
return nil, err
<<<<<<< HEAD
}
score, err := cast.ToInt64E(data[i+1])
if err != nil {
return nil, err
}
=======
}
score, err := cast.ToInt64E(data[i+1])
if err != nil {
return nil, err
}
>>>>>>> 138bd7f... Refactor redis keys and store messages in protobuf
msg, err := base.DecodeMessage([]byte(s))
=======
var tasks []*base.TaskInfo
for _, s := range data {
vals, err := cast.ToSliceE(s)
@@ -516,7 +495,6 @@ func (r *RDB) listZSetEntries(key, qname string, pgn Pagination) ([]*base.TaskIn
return nil, err
}
info, err := makeTaskInfo(vals)
>>>>>>> 4c699a2... Update RDB.ListScheduled, ListRetry, and ListArchived to return list of
if err != nil {
continue // bad data, ignore and continue
}

View File

@@ -101,11 +101,7 @@ func TestEnqueueUnique(t *testing.T) {
m1 := base.TaskMessage{
ID: uuid.New(),
Type: "email",
<<<<<<< HEAD
Payload: h.JSON(map[string]interface{}{"user_id": json.Number("123")}),
=======
Payload: map[string]interface{}{"user_id": json.Number("123")},
>>>>>>> 138bd7f... Refactor redis keys and store messages in protobuf
Queue: base.DefaultQueueName,
UniqueKey: base.UniqueKey(base.DefaultQueueName, "email", h.JSON(map[string]interface{}{"user_id": 123})),
}
@@ -161,11 +157,7 @@ func TestDequeue(t *testing.T) {
t1 := &base.TaskMessage{
ID: uuid.New(),
Type: "send_email",
<<<<<<< HEAD
Payload: h.JSON(map[string]interface{}{"subject": "hello!"}),
=======
Payload: map[string]interface{}{"subject": "hello!"},
>>>>>>> 138bd7f... Refactor redis keys and store messages in protobuf
Queue: "default",
Timeout: 1800,
Deadline: 0,
@@ -775,11 +767,7 @@ func TestRequeue(t *testing.T) {
func TestSchedule(t *testing.T) {
r := setup(t)
defer r.Close()
<<<<<<< HEAD
msg := h.NewTaskMessage("send_email", h.JSON(map[string]interface{}{"subject": "hello"}))
=======
msg := h.NewTaskMessage("send_email", map[string]interface{}{"subject": "hello"})
>>>>>>> 138bd7f... Refactor redis keys and store messages in protobuf
tests := []struct {
msg *base.TaskMessage
processAt time.Time
@@ -1487,11 +1475,7 @@ func TestWriteServerState(t *testing.T) {
Queues: map[string]int{"default": 2, "email": 5, "low": 1},
StrictPriority: false,
Started: time.Now().UTC(),
<<<<<<< HEAD
Status: "active",
=======
Status: "running",
>>>>>>> 138bd7f... Refactor redis keys and store messages in protobuf
ActiveWorkerCount: 0,
}
@@ -1581,11 +1565,7 @@ func TestWriteServerStateWithWorkers(t *testing.T) {
Queues: map[string]int{"default": 2, "email": 5, "low": 1},
StrictPriority: false,
Started: time.Now().Add(-10 * time.Minute).UTC(),
<<<<<<< HEAD
Status: "active",
=======
Status: "running",
>>>>>>> 138bd7f... Refactor redis keys and store messages in protobuf
ActiveWorkerCount: len(workers),
}