retryExecution method

Future<Response> retryExecution(
  1. String id, {
  2. bool? loadWorkflow,
})

Retry a failed execution

Implementation

Future<Response> retryExecution(String id, {bool? loadWorkflow}) async {
  try {
    final response = await _dio.post(
      '/executions/$id/retry',
      data: {
        if (loadWorkflow != null) 'loadWorkflow': loadWorkflow,
      },
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to retry execution: ${e.message}');
  }
}