Documentation

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

$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.

Methods

withUseVersioning()

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
self

        
On this page

Search results