From 53c26c71a218c493e90415a8895fa13f96b085e1 Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Fri, 12 Jul 2024 14:50:29 +0000 Subject: [PATCH] force DisableRegistrationAliasing on - it prevents many bugs --- worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/worker.go b/worker.go index cf0c12b..68aaefe 100644 --- a/worker.go +++ b/worker.go @@ -82,6 +82,7 @@ func (w *Worker) Run(ctx context.Context, client *Client, options worker.Options if w.queue.namespace.name != client.namespace { return fmt.Errorf("worker for namespace %s can't be started with client with namespace %s", w.queue.namespace.name, client.namespace) } + options.DisableRegistrationAliasing = true wrk := worker.New(client.Client, w.queue.name, options) w.Register(wrk)