From c177c904b269e987dcdf809defb59398f1c5f7da Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Sun, 17 Nov 2024 20:45:34 -0500 Subject: [PATCH] do a cancel on goroutine for context --- internal/backend/backup/jobrun.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/backend/backup/jobrun.go b/internal/backend/backup/jobrun.go index f8de41d..7dc25af 100644 --- a/internal/backend/backup/jobrun.go +++ b/internal/backend/backup/jobrun.go @@ -137,6 +137,7 @@ func RunBackup(job *store.Job, storeInstance *store.Store, waitChan chan struct{ go func() { taskC := <-taskChan task = &taskC + cancel() }() for {