Merge pull request #523 from Hestia-Homes/main

increase concurrency, handle error case for gain equal to fixed gain  @KhalimCK
This commit is contained in:
KhalimCK 2025-10-29 15:23:22 +00:00 committed by GitHub
commit 3d6c957e13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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: