Skip to content

v2.7.0-BETA2

Pre-release
Pre-release
Compare
Choose a tag to compare
@roxblnfk roxblnfk released this 23 Nov 16:30
· 497 commits to master since this release
d20614c

What's Changed

Workflow Start Delay

Time to wait before dispatching the first Workflow task.
If the Workflow gets a Signal before the delay, a Workflow task will be dispatched and the rest of the delay will be ignored. A Signal from WorkflowClientInterface::startWithSignal() won't trigger a workflow task.
Cannot be set the same time as a WorkflowOptions::withCronSchedule().

/** @var \Temporal\Client\WorkflowClientInterface $client */

$workflow = $client->newWorkflowStub(
    GreeterWorkflowInterface::class,
    \Temporal\Client\WorkflowOptions::new()
        ->withWorkflowStartDelay(\DateInterval::createFromDateString('1 minute'))
);
$client->start($workflow, 'Hello world!');

Full Changelog: v2.7.0-BETA1...v2.7.0-BETA2