From 10c705008423bb496fa1817c03653ffa9dd5ce0f Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 29 Jul 2024 13:29:58 +1000 Subject: [PATCH] Run post-command hooks in grace period --- internal/job/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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