diff --git a/x-pack/plugins/ml/server/routes/trained_models.ts b/x-pack/plugins/ml/server/routes/trained_models.ts index 3e425548b8fbc..cdd4d8128c219 100644 --- a/x-pack/plugins/ml/server/routes/trained_models.ts +++ b/x-pack/plugins/ml/server/routes/trained_models.ts @@ -579,10 +579,15 @@ export function trainedModelsRoutes( routeGuard.fullLicenseAPIGuard(async ({ mlClient, request, response }) => { try { const { modelId } = request.params; - const body = await mlClient.startTrainedModelDeployment({ - model_id: modelId, - ...(request.query ? request.query : {}), - }); + const body = await mlClient.startTrainedModelDeployment( + { + model_id: modelId, + ...(request.query ? request.query : {}), + }, + { + maxRetries: 0, + } + ); return response.ok({ body, });