WorkerFactoryInterface
in
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
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 ]) : WorkerInterface
Parameters
- $taskQueue : string = self::DEFAULT_TASK_QUEUE
- $options : WorkerOptions|null = null
Return values
WorkerInterfacerun()
Start processing workflows and activities processing.
public
run() : mixed