Skip to content
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
6 changes: 6 additions & 0 deletions manager/orchestrator/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ func SetServiceTasksRemove(ctx context.Context, s *store.MemoryStore, service *a
// within the boundaries of a transaction
latestTask := store.GetTask(tx, t.ID)

// in case the task is deleted
if latestTask == nil {
log.G(ctx).WithField("task_id", t.ID).Debug("task no longer exists in store")
return nil
}

// time travel is not allowed. if the current desired state is
// above the one we're trying to go to we can't go backwards.
// we have nothing to do and we should skip to the next task
Expand Down