Skip to content

Commit

Permalink
Fix: task cancellation error was not returned
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtamm committed Jan 27, 2025
1 parent 1e8d16a commit d748987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/tes.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func (ts *TaskService) CancelTask(ctx context.Context, req *tes.CancelTaskReques
return result, status.Errorf(codes.NotFound, "%v: taskID: %s", err.Error(), req.Id)
} else if err == tes.ErrNotPermitted {
return result, status.Errorf(codes.PermissionDenied, "%v: taskID: %s", err.Error(), req.Id)
} else if err != nil {
return result, err
}

// dispatch to compute backend
Expand Down

0 comments on commit d748987

Please sign in to comment.