check tasks list before appending task
This commit is contained in:
parent
e3a4ea9a13
commit
91fdfc17b1
@ -83,6 +83,11 @@ func getTasksToRun() []Task {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
for _, task := range tasks {
|
||||||
|
if task.ID == t.ID {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
tasks = append(tasks, t)
|
tasks = append(tasks, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user