mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-23 10:16:12 +08:00
Add Config type to configure background processing behavior
This commit is contained in:
@@ -18,7 +18,9 @@ func TestBackground(t *testing.T) {
|
||||
DB: 15,
|
||||
})
|
||||
client := NewClient(r)
|
||||
bg := NewBackground(r, 10)
|
||||
bg := NewBackground(r, &Config{
|
||||
Concurrency: 10,
|
||||
})
|
||||
|
||||
// no-op handler
|
||||
h := func(task *Task) error {
|
||||
|
Reference in New Issue
Block a user