This commit is contained in:
parent
d63d345a9b
commit
e48160dfa3
8 changed files with 243 additions and 390 deletions
|
|
@ -26,7 +26,10 @@ func (p *Processor) StartWork(receivedTasks []shared.TaskResponse) {
|
|||
wg.Add(1)
|
||||
go func(origin string, tasks []shared.Task) {
|
||||
defer wg.Done()
|
||||
p.handlers[origin].HandleTasks(tasks, p.out, p.state)
|
||||
if p.handlers[origin] != nil {
|
||||
log.Info("Running task handler for origin: ", origin)
|
||||
p.handlers[origin].HandleTasks(tasks, p.out, p.state)
|
||||
}
|
||||
}(origin, tasks)
|
||||
}
|
||||
wg.Wait()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue