November 23, 2023
PHP SDK v2.7.0-BETA2
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