withStartToCloseTimeout(50) // will fail on first attempt ->withRetryOptions(RetryOptions::new()->withMaximumAttempts(2)) ); return yield $act->failedActivity($iterations); } }