Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Fixes 1043: Modifies snap to allow for removal of disabled tasks #1069

Merged
merged 1 commit into from
Jul 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scheduler/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func (t *taskCollection) remove(task *task) error {
t.Lock()
defer t.Unlock()
if _, ok := t.table[task.id]; ok {
if task.state != core.TaskStopped {
if task.state != core.TaskStopped && task.state != core.TaskDisabled {
taskLogger.WithFields(log.Fields{
"_block": "remove",
"task id": task.id,
Expand Down