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
  • Loading branch information
一条肥鱼 authored Aug 20, 2023
1 parent 41809b5 commit 8a52da5
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 8a52da5

Please sign in to comment.