From 48806ca765520d2ed7edd07eeb6f7353848fc0fc Mon Sep 17 00:00:00 2001 From: Mike Cote Date: Mon, 26 Aug 2024 13:11:25 -0400 Subject: [PATCH] Add size multiplier for limited concurrency tasks --- .../plugins/task_manager/server/task_claimers/strategy_mget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/task_manager/server/task_claimers/strategy_mget.ts b/x-pack/plugins/task_manager/server/task_claimers/strategy_mget.ts index dfdf41b160541..dce4bf66e57db 100644 --- a/x-pack/plugins/task_manager/server/task_claimers/strategy_mget.ts +++ b/x-pack/plugins/task_manager/server/task_claimers/strategy_mget.ts @@ -390,7 +390,7 @@ async function searchAvailableTasks({ searches.push({ query, sort, - size: capacity, + size: capacity * SIZE_MULTIPLIER_FOR_TASK_FETCH, seq_no_primary_term: true, }); }