feat(dispatch): queue async events durably
This commit is contained in:
@@ -48,7 +48,6 @@ type Option func(*WorkerPool)
|
||||
func NewWorkerPool(db ...*gorm.DB) *WorkerPool {
|
||||
wp := &WorkerPool{
|
||||
handlers: make(map[string]JobHandler),
|
||||
queues: []string{model.DefaultBackgroundJobQueue},
|
||||
workerID: fmt.Sprintf("worker-%d", time.Now().UnixNano()),
|
||||
workerCount: 1,
|
||||
pollInterval: 500 * time.Millisecond,
|
||||
|
||||
Reference in New Issue
Block a user