Documentation

WorkerFactoryInterface

The interface is responsible for providing an interface for registering all dependencies and creating a global event loop.

In addition, implementation of this interface is responsible for delegating events that came from the Temporal server to a specific TaskQueue.

Tags
see
LoopInterface

Table of Contents

Constants

DEFAULT_TASK_QUEUE  = 'default'
The name of the standard task queue into which all events from the Temporal server will fall.

Methods

newWorker()  : WorkerInterface
Create a new Temporal Worker with the name of the task queue and register in worker.
run()  : mixed
Start processing workflows and activities processing.

Constants

DEFAULT_TASK_QUEUE

The name of the standard task queue into which all events from the Temporal server will fall.

public string DEFAULT_TASK_QUEUE = 'default'

Methods

newWorker()

Create a new Temporal Worker with the name of the task queue and register in worker.

public newWorker([string $taskQueue = self::DEFAULT_TASK_QUEUE ][, WorkerOptions|null $options = null ][, ExceptionInterceptorInterface|null $exceptionInterceptor = null ][, PipelineProvider|null $interceptorProvider = null ][, LoggerInterface|null $logger = null ]) : WorkerInterface
Parameters
$taskQueue : string = self::DEFAULT_TASK_QUEUE
$options : WorkerOptions|null = null
$exceptionInterceptor : ExceptionInterceptorInterface|null = null
$interceptorProvider : PipelineProvider|null = null
$logger : LoggerInterface|null = null
Return values
WorkerInterface

        
On this page

Search results