Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions features/update/worker_restart/feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Temporal\Activity\ActivityMethod;
use Temporal\Activity\ActivityOptions;
use Temporal\Client\WorkflowStubInterface;
use Temporal\Exception\Failure\ApplicationFailure;
use Temporal\Workflow;
use Temporal\Workflow\WorkflowInterface;
use Temporal\Workflow\WorkflowMethod;
Expand Down Expand Up @@ -58,9 +57,8 @@ public function blocks(): string
$this->kv->set(KV_ACTIVITY_STARTED, true);

do {
$blocked = $this->kv->get(KV_ACTIVITY_BLOCKED);
$blocked = $this->kv->get(KV_ACTIVITY_BLOCKED, true);

\is_bool($blocked) or throw new ApplicationFailure('KV BLOCKED key not set', 'KvNotSet', true);
if (!$blocked) {
break;
}
Expand All @@ -80,7 +78,6 @@ public static function check(
ContainerInterface $c,
Runner $runner,
): void {
$c->get(StorageInterface::class)->set(KV_ACTIVITY_BLOCKED, true);
$handle = $stub->startUpdate('do_activities');

# Wait for the activity to start.
Expand Down
Loading