Skip to content

[Bug] WorkerFactoryInterface seems to be missing arguments for newWorker() method #573

Description

@vansante

What are you really trying to do?

Setting a ExceptionInterceptorInterface and PipelineProvider with the newWorker method.

Describe the bug

The interface method is:

    public function newWorker(
        string $taskQueue = self::DEFAULT_TASK_QUEUE,
        ?WorkerOptions $options = null,
    ): WorkerInterface;

But the actual implementation is:

    public function newWorker(
        string $taskQueue = self::DEFAULT_TASK_QUEUE,
        ?WorkerOptions $options = null,
        ?ExceptionInterceptorInterface $exceptionInterceptor = null,
        ?PipelineProvider $interceptorProvider = null,
    ): WorkerInterface {
        // .. implementation
    }

Minimal Reproduction

Not really relevant, just install the sdk.

Environment/Versions

Also irrelevant.

Additional context

The interface should describe the full method with all arguments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions