Skip to content

Commit

Permalink
force DisableRegistrationAliasing on - it prevents many bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vikstrous committed Jul 12, 2024
1 parent 9fcbe3c commit 53c26c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 53c26c7

Please sign in to comment.