We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a32d9f commit 1b567b0Copy full SHA for 1b567b0
pkg/commands/run.go
@@ -238,7 +238,9 @@ func (c *runCommand) execute(_ *cobra.Command, args []string) {
238
needTrackResources := logutils.IsVerbose() || c.opts.PrintResourcesUsage
239
240
trackResourcesEndCh := make(chan struct{})
241
- defer func() { // XXX: this defer must be before ctx.cancel defer
+
242
+ // Note: this defer must be before ctx.cancel defer
243
+ defer func() {
244
if needTrackResources { // wait until resource tracking finished to print properly
245
<-trackResourcesEndCh
246
}
0 commit comments