Skip to content

Commit

Permalink
fix: TERM signal was catched but not handled properly, which causing …
Browse files Browse the repository at this point in the history
…waiting so long to delete a pod

Signed-off-by: feiyudev <feiyu.dev@gmail.com>
  • Loading branch information
feiyudev committed Aug 15, 2023
1 parent 6a1c7ef commit a432964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/argoexec/commands/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewResourceCommand() *cobra.Command {
os.Exit(1)
}

ctx := context.Background()
ctx := cmd.Context()
err := execResource(ctx, args[0])
if err != nil {
log.Fatalf("%+v", err)
Expand Down

0 comments on commit a432964

Please sign in to comment.