WorkerDeploymentOptions
in package
uses
CloneWith
Options for configuring the Worker Versioning feature.
Table of Contents
Properties
- $defaultVersioningBehavior : VersioningBehavior
- $useVersioning : bool
- If set, opts this worker into the Worker Deployment Versioning feature.
- $version : WorkerDeploymentVersion|null
Methods
- new() : self
- withDefaultVersioningBehavior() : self
- Sets the default versioning behavior for this worker.
- withUseVersioning() : self
- If set, opts this worker into the Worker Deployment Versioning feature.
- withVersion() : self
- Sets the version of the worker deployment.
- __construct() : mixed
Properties
$defaultVersioningBehavior read-only
private
VersioningBehavior
$defaultVersioningBehavior
$useVersioning read-only
If set, opts this worker into the Worker Deployment Versioning feature.
private
bool
$useVersioning
It will only operate on workflows it claims to be compatible with.
$version read-only
private
WorkerDeploymentVersion|null
$version
Methods
new()
public
static new() : self
Return values
selfwithDefaultVersioningBehavior()
Sets the default versioning behavior for this worker.
public
withDefaultVersioningBehavior(VersioningBehavior $behavior) : self
Parameters
- $behavior : VersioningBehavior
Return values
selfwithUseVersioning()
If set, opts this worker into the Worker Deployment Versioning feature.
public
withUseVersioning(bool $value) : self
It will only operate on workflows it claims to be compatible with. You must also call self::withVersion() if this flag is true.
Parameters
- $value : bool
Return values
selfwithVersion()
Sets the version of the worker deployment.
public
withVersion(non-empty-string|WorkerDeploymentVersion $version) : self
Parameters
- $version : non-empty-string|WorkerDeploymentVersion
Return values
self__construct()
private
__construct() : mixed