diff options
Diffstat (limited to 'pkg/worker_watcher/container/interface.go')
-rw-r--r-- | pkg/worker_watcher/container/interface.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/worker_watcher/container/interface.go b/pkg/worker_watcher/container/interface.go index 0e648d34..e10ecdae 100644 --- a/pkg/worker_watcher/container/interface.go +++ b/pkg/worker_watcher/container/interface.go @@ -1,6 +1,8 @@ package container import ( + "context" + "github.com/spiral/roadrunner/v2/pkg/worker" ) @@ -9,7 +11,7 @@ type Vector interface { // Enqueue used to put worker to the vector Enqueue(worker.BaseProcess) // Dequeue used to get worker from the vector - Dequeue() (worker.BaseProcess, bool) + Dequeue(ctx context.Context) (worker.BaseProcess, error) // Destroy used to stop releasing the workers Destroy() } |