Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaecalderon committed Nov 17, 2023
1 parent 4b70c21 commit 0b14e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ func (c *Command) OnExit(ae *task.AllocationExited) {

c.exitStatus = ae

var sErr status.Status
err := c.db.CompleteTask(c.taskID, time.Now().UTC())
if err != nil {
c.syslog.WithError(err).Error("marking task complete")
var sErr status.Status
if errors.As(err, &sErr) && sErr.Code() != codes.NotFound {
return
}
c.syslog.WithError(err).Error("marking task complete")
}

if err := user.DeleteSessionByToken(context.TODO(), c.GenericCommandSpec.Base.UserSessionToken); err != nil {
Expand Down

0 comments on commit 0b14e65

Please sign in to comment.