diff --git a/x-pack/plugins/fleet/common/openapi/bundled.json b/x-pack/plugins/fleet/common/openapi/bundled.json index fde6eee7d08840..dca3fd3ccb6789 100644 --- a/x-pack/plugins/fleet/common/openapi/bundled.json +++ b/x-pack/plugins/fleet/common/openapi/bundled.json @@ -3796,7 +3796,7 @@ "type": "string" }, "rollout_duration_seconds": { - "type": "number;" + "type": "number" }, "agents": { "oneOf": [ diff --git a/x-pack/plugins/fleet/common/openapi/bundled.yaml b/x-pack/plugins/fleet/common/openapi/bundled.yaml index 030bd686f8c18b..d1a114b35ab6c5 100644 --- a/x-pack/plugins/fleet/common/openapi/bundled.yaml +++ b/x-pack/plugins/fleet/common/openapi/bundled.yaml @@ -2392,7 +2392,7 @@ components: source_uri: type: string rollout_duration_seconds: - type: number; + type: number agents: oneOf: - type: array diff --git a/x-pack/plugins/fleet/common/openapi/components/schemas/bulk_upgrade_agents.yaml b/x-pack/plugins/fleet/common/openapi/components/schemas/bulk_upgrade_agents.yaml index 1f816421c37dbb..74df244983a84f 100644 --- a/x-pack/plugins/fleet/common/openapi/components/schemas/bulk_upgrade_agents.yaml +++ b/x-pack/plugins/fleet/common/openapi/components/schemas/bulk_upgrade_agents.yaml @@ -6,7 +6,7 @@ properties: source_uri: type: string rollout_duration_seconds: - type: number; + type: number agents: oneOf: - type: array diff --git a/x-pack/plugins/fleet/server/services/agents/upgrade.ts b/x-pack/plugins/fleet/server/services/agents/upgrade.ts index 19dd05df8bcddf..f1bd60d1eba949 100644 --- a/x-pack/plugins/fleet/server/services/agents/upgrade.ts +++ b/x-pack/plugins/fleet/server/services/agents/upgrade.ts @@ -29,7 +29,7 @@ import { } from './crud'; import { searchHitToAgent } from './helpers'; -const MINIMUM_EXECUTION_DURATION_SECONDS = 600; // 10m +const MINIMUM_EXECUTION_DURATION_SECONDS = 1800; // 30m function isMgetDoc(doc?: estypes.MgetResponseItem): doc is estypes.GetGetResult { return Boolean(doc && 'found' in doc);