Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Do not use prepareCtx to send updates if prepare is cancelled due to …
Browse files Browse the repository at this point in the history
…kill
  • Loading branch information
sargun committed May 15, 2018
1 parent 4b3150c commit 6b23ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ no_launchguard:
switch err.(type) {
case *runtimeTypes.RegistryImageNotFoundError, *runtimeTypes.InvalidSecurityGroupError, *runtimeTypes.BadEntryPointError:
r.logger.Error("Returning TASK_FAILED for task: ", err)
r.updateStatus(prepareCtx, titusdriver.Failed, err.Error())
r.updateStatus(ctx, titusdriver.Failed, err.Error())
default:
r.logger.Error("Returning TASK_LOST for task: ", err)
r.updateStatus(prepareCtx, titusdriver.Lost, err.Error())
r.updateStatus(ctx, titusdriver.Lost, err.Error())
}
return
}
Expand Down

0 comments on commit 6b23ba9

Please sign in to comment.