summaryrefslogtreecommitdiff
path: root/pkg/pool/static_pool.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-26 14:08:33 +0300
committerValery Piashchynski <[email protected]>2021-06-26 14:08:33 +0300
commit53e50a05bd27ecec03695b69defd920fc4a25c5c (patch)
treee86ca391e5a85118098c6340a0f0ae86747db042 /pkg/pool/static_pool.go
parentad1ca84b26bb6a4ba410a8a684fe3d2e2f86eaea (diff)
parentfc540f6029772ff51913b8ee3c082f8197010c52 (diff)
Merge remote-tracking branch 'origin/master' into feature/jobs_plugin
Diffstat (limited to 'pkg/pool/static_pool.go')
-rwxr-xr-xpkg/pool/static_pool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pool/static_pool.go b/pkg/pool/static_pool.go
index 74e06b81..1c149c51 100755
--- a/pkg/pool/static_pool.go
+++ b/pkg/pool/static_pool.go
@@ -174,7 +174,7 @@ func (sp *StaticPool) execWithTTL(ctx context.Context, p payload.Payload) (paylo
return sp.execDebugWithTTL(ctx, p)
}
- ctxAlloc, cancel := context.WithTimeout(ctx, sp.cfg.AllocateTimeout)
+ ctxAlloc, cancel := context.WithTimeout(context.Background(), sp.cfg.AllocateTimeout)
defer cancel()
w, err := sp.getWorker(ctxAlloc, op)
if err != nil {