From 27de54adefd02196233ea722e6f6e0513fb0ae87 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 29 Oct 2025 15:15:07 +0000 Subject: [PATCH] increase concurrency, handle error case for gain equal to fixed gain --- recommendations/optimiser/funding_optimiser.py | 2 +- serverless.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recommendations/optimiser/funding_optimiser.py b/recommendations/optimiser/funding_optimiser.py index 8fbb13b2..4da08587 100644 --- a/recommendations/optimiser/funding_optimiser.py +++ b/recommendations/optimiser/funding_optimiser.py @@ -338,7 +338,7 @@ def optimise_with_funding_paths(p, input_measures, housing_type, funding: Fundin if fixed_gain > target_gain: picked, sub_cost, sub_gain = ([], 0.0, 0.0) - elif fixed_gain < target_gain and not sub_measures: + elif fixed_gain <= target_gain and not sub_measures: picked, sub_cost, sub_gain = ([], 0.0, 0.0) else: picked, sub_cost, sub_gain = run_optimizer( diff --git a/serverless.yml b/serverless.yml index c1fc0b09..6eea03eb 100644 --- a/serverless.yml +++ b/serverless.yml @@ -66,7 +66,7 @@ functions: - sqs: arn: arn:aws:sqs:${self:provider.region}:${aws:accountId}:model-engine-queue batchSize: 1 - maximumConcurrency: 2 # Heavily restricts concurrency to avoid overwhelming the ldmbda limits + maximumConcurrency: 5 # Heavily restricts concurrency to avoid overwhelming the ldmbda limits resources: