mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-24 10:36:12 +08:00
chore(): 设置jobId 为cmdb的instanceId
This commit is contained in:
@@ -3220,14 +3220,14 @@ func TestInspectorSchedulerEntries(t *testing.T) {
|
||||
want: []*SchedulerEntry{
|
||||
{
|
||||
Spec: "* * * * *",
|
||||
Task: NewTask("foo", nil),
|
||||
Task: NewTask("foo", "", nil),
|
||||
Opts: nil,
|
||||
Next: now.Add(5 * time.Hour),
|
||||
Prev: now.Add(-2 * time.Hour),
|
||||
},
|
||||
{
|
||||
Spec: "@every 20m",
|
||||
Task: NewTask("bar", h.JSON(map[string]interface{}{"fiz": "baz"})),
|
||||
Task: NewTask("bar", "taskId", h.JSON(map[string]interface{}{"fiz": "baz"})),
|
||||
Opts: []Option{Queue("bar"), MaxRetry(20)},
|
||||
Next: now.Add(1 * time.Minute),
|
||||
Prev: now.Add(-19 * time.Minute),
|
||||
|
||||
Reference in New Issue
Block a user