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

Commit

Permalink
Merge pull request #1069 from tjmcs/tb/stop-disabled-task
Browse files Browse the repository at this point in the history
Fixes 1043: Modifies snap to allow for removal of disabled tasks
  • Loading branch information
jcooklin authored Jul 14, 2016
2 parents ca3a0b9 + 84aa75e commit 8dd792b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 8dd792b

Please sign in to comment.