@@ -106,7 +106,7 @@ func Test_TaskQueue(t *testing.T) {
106
106
107
107
ctx := context .Background ()
108
108
109
- q , err := newTaskQueue [foo ](context .Background (), client , "prefix" , taskType )
109
+ q , err := newTaskQueue [foo ](context .Background (), client , "prefix" , taskType , "" )
110
110
require .NoError (t , err )
111
111
112
112
_ , err = client .Pipelined (ctx , func (p redis.Pipeliner ) error {
@@ -135,7 +135,7 @@ func Test_TaskQueue(t *testing.T) {
135
135
})
136
136
require .NoError (t , err )
137
137
138
- q2 , _ := newTaskQueue [any ](context .Background (), client , "prefix" , taskType )
138
+ q2 , _ := newTaskQueue [any ](context .Background (), client , "prefix" , taskType , "" )
139
139
require .NoError (t , err )
140
140
141
141
// Dequeue using second worker
@@ -148,7 +148,7 @@ func Test_TaskQueue(t *testing.T) {
148
148
{
149
149
name : "Complete removes task" ,
150
150
f : func (t * testing.T , q * taskQueue [any ]) {
151
- q2 , _ := newTaskQueue [any ](context .Background (), client , "prefix" , taskType )
151
+ q2 , _ := newTaskQueue [any ](context .Background (), client , "prefix" , taskType , "" )
152
152
153
153
ctx := context .Background ()
154
154
@@ -182,7 +182,7 @@ func Test_TaskQueue(t *testing.T) {
182
182
type taskData struct {
183
183
Count int `json:"count"`
184
184
}
185
- q , _ := newTaskQueue [taskData ](context .Background (), client , "prefix" , taskType )
185
+ q , _ := newTaskQueue [taskData ](context .Background (), client , "prefix" , taskType , "" )
186
186
187
187
ctx := context .Background ()
188
188
@@ -193,7 +193,7 @@ func Test_TaskQueue(t *testing.T) {
193
193
})
194
194
require .NoError (t , err )
195
195
196
- q2 , _ := newTaskQueue [taskData ](context .Background (), client , "prefix" , taskType )
196
+ q2 , _ := newTaskQueue [taskData ](context .Background (), client , "prefix" , taskType , "" )
197
197
require .NoError (t , err )
198
198
199
199
task , err := q2 .Dequeue (ctx , client , []workflow.Queue {workflow .QueueDefault }, lockTimeout , blockTimeout )
@@ -221,7 +221,7 @@ func Test_TaskQueue(t *testing.T) {
221
221
require .NoError (t , err )
222
222
223
223
// Create second worker (with different name)
224
- q2 , _ := newTaskQueue [any ](context .Background (), client , "prefix" , taskType )
224
+ q2 , _ := newTaskQueue [any ](context .Background (), client , "prefix" , taskType , "" )
225
225
require .NoError (t , err )
226
226
227
227
task , err := q2 .Dequeue (ctx , client , []workflow.Queue {workflow .QueueDefault }, lockTimeout , blockTimeout )
@@ -281,7 +281,7 @@ func Test_TaskQueue(t *testing.T) {
281
281
282
282
ctx := context .Background ()
283
283
284
- q , err := newTaskQueue [any ](ctx , client , "prefix" , taskType )
284
+ q , err := newTaskQueue [any ](ctx , client , "prefix" , taskType , "" )
285
285
require .NoError (t , err )
286
286
287
287
q .Prepare (ctx , client , []workflow.Queue {workflow .QueueDefault })
0 commit comments