mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
increase concurrency, handle error case for gain equal to fixed gain
This commit is contained in:
parent
235820e2e1
commit
27de54adef
2 changed files with 2 additions and 2 deletions
|
|
@ -338,7 +338,7 @@ def optimise_with_funding_paths(p, input_measures, housing_type, funding: Fundin
|
||||||
|
|
||||||
if fixed_gain > target_gain:
|
if fixed_gain > target_gain:
|
||||||
picked, sub_cost, sub_gain = ([], 0.0, 0.0)
|
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)
|
picked, sub_cost, sub_gain = ([], 0.0, 0.0)
|
||||||
else:
|
else:
|
||||||
picked, sub_cost, sub_gain = run_optimizer(
|
picked, sub_cost, sub_gain = run_optimizer(
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ functions:
|
||||||
- sqs:
|
- sqs:
|
||||||
arn: arn:aws:sqs:${self:provider.region}:${aws:accountId}:model-engine-queue
|
arn: arn:aws:sqs:${self:provider.region}:${aws:accountId}:model-engine-queue
|
||||||
batchSize: 1
|
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:
|
resources:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue