summaryrefslogtreecommitdiff
path: root/tests/temporal/Workflow/FailedHeartbeatWorkflow.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/temporal/Workflow/FailedHeartbeatWorkflow.php')
-rw-r--r--tests/temporal/Workflow/FailedHeartbeatWorkflow.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/temporal/Workflow/FailedHeartbeatWorkflow.php b/tests/temporal/Workflow/FailedHeartbeatWorkflow.php
deleted file mode 100644
index e857f100..00000000
--- a/tests/temporal/Workflow/FailedHeartbeatWorkflow.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace Temporal\Tests\Workflow;
-
-use Temporal\Activity\ActivityOptions;
-use Temporal\Common\RetryOptions;
-use Temporal\Workflow;
-use Temporal\Workflow\WorkflowMethod;
-use Temporal\Tests\Activity\HeartBeatActivity;
-
-#[Workflow\WorkflowInterface]
-class FailedHeartbeatWorkflow
-{
- #[WorkflowMethod(name: 'FailedHeartbeatWorkflow')]
- public function handler(
- int $iterations
- ): iterable {
- $act = Workflow::newActivityStub(
- HeartBeatActivity::class,
- ActivityOptions::new()
- ->withStartToCloseTimeout(50)
- // will fail on first attempt
- ->withRetryOptions(RetryOptions::new()->withMaximumAttempts(2))
- );
-
- return yield $act->failedActivity($iterations);
- }
-}