-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathFeatureFlags.php
34 lines (29 loc) · 950 Bytes
/
FeatureFlags.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
namespace Temporal\Worker;
use Temporal\Workflow;
/**
* Feature flags help to smoothly introduce behavior changes that may affect existing workflows.
* Also, there may be experimental features that are in the testing phase.
*
* The flags should be set before the SDK classes are initialized.
*/
final class FeatureFlags
{
/**
* Workflow handler must be called after all signals of the same tick are processed.
* Set to TRUE to enable this behavior.
*
* @experimental
* @since SDK 2.11.0
* @link https://github.com/temporalio/sdk-php/issues/457
*/
public static bool $workflowDeferredHandlerStart = false;
/**
* Warn about running Signal and Update handlers on Workflow finish.
* It uses {@see Workflow::getLogger()} to output a warning message.
*
* @since SDK 2.11.0
*/
public static bool $warnOnWorkflowUnfinishedHandlers = true;
}