fetchDeployAttemptStatus static method

Future<({List<DeployAttemptStage> stages, DateTime? startedAt})> fetchDeployAttemptStatus(
  1. Client cloudApiClient, {
  2. required String cloudCapsuleId,
  3. required UuidValue attemptId,
})

Implementation

static Future<({DateTime? startedAt, List<DeployAttemptStage> stages})>
fetchDeployAttemptStatus(
  final Client cloudApiClient, {
  required final String cloudCapsuleId,
  required final UuidValue attemptId,
}) async {
  final stages = await cloudApiClient.status.getDeployAttemptStatus(
    cloudCapsuleId: cloudCapsuleId,
    attemptId: attemptId,
  );

  return (
    startedAt: stages.firstOrNull?.startedAt,
    stages: _combineRolloutStages(stages),
  );
}