diff --git a/internal/job/executor.go b/internal/job/executor.go index bb5d0b47aa..a1aa5fd52c 100644 --- a/internal/job/executor.go +++ b/internal/job/executor.go @@ -900,7 +900,7 @@ func (e *Executor) CommandPhase(ctx context.Context) (hookErr error, commandErr if preCommandErr != nil { return } - hookErr = e.runPostCommandHooks(ctx) + hookErr = e.runPostCommandHooks(withGracePeriod(ctx, e.SignalGracePeriod)) }() // Run pre-command hooks