retryExecution method
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}');
}
}