Skip to content

Commit 3d276b4

Browse files
committed
Fix error handling for task deletion.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 247de3f commit 3d276b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/shim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (s *shim) Delete(ctx context.Context) (*runtime.Exit, error) {
150150
response, err := s.task.Delete(ctx, &task.DeleteRequest{
151151
ID: s.ID(),
152152
})
153-
if err != nil && errdefs.IsNotFound(err) {
153+
if err != nil && !errdefs.IsNotFound(err) {
154154
return nil, errdefs.FromGRPC(err)
155155
}
156156
if err := s.waitShutdown(ctx); err != nil {

0 commit comments

Comments
 (0)