mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
try bump mem up to 4gb
This commit is contained in:
parent
be11ee882d
commit
82452150fc
3 changed files with 5 additions and 4 deletions
|
|
@ -703,7 +703,8 @@ async def model_engine(body: PlanTriggerRequest):
|
|||
property_lookup[("uprn", uprn)] = prop_id
|
||||
if landlord_property_id:
|
||||
property_lookup[("landlord_property_id", landlord_property_id)] = prop_id
|
||||
|
||||
|
||||
logger.info("Processing each property for model input preparation")
|
||||
input_properties, inspections_map, eco_packages, epc_upserts = [], {}, {}, []
|
||||
for addr, config in tqdm(
|
||||
zip(addresses, plan_input),
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ df = df.sort_values("property_id", ascending=True)
|
|||
|
||||
agg = df.groupby("property_id").size().reset_index(name="n_plans")
|
||||
agg = agg.sort_values("n_plans", ascending=True)
|
||||
agg[agg["n_plans"] != 2]
|
||||
assert all(agg["n_plans"] == 2)
|
||||
agg[agg["n_plans"] != 3]
|
||||
assert all(agg["n_plans"] == 3)
|
||||
|
||||
|
||||
def delete_plan_batch(session: Session, plan_ids: list[int]):
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ functions:
|
|||
image:
|
||||
uri: ${env:ECR_URI}:${env:GITHUB_SHA}
|
||||
timeout: 900
|
||||
memorySize: 3008
|
||||
memorySize: 4096
|
||||
role: EngineLambdaRole
|
||||
events:
|
||||
- sqs:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue