2
0
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:
Ken Hibino
2019-12-29 16:55:51 -08:00
parent fc71857c7c
commit 9af14d9a6d
5 changed files with 34 additions and 13 deletions

View File

@@ -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 {