Commit graph

36 commits

Author SHA1 Message Date
Daniel Roth
bb51d16f7f get the task statuses to update 2026-02-26 16:38:44 +00:00
Daniel Roth
add53a1949 Correct maths and prepare to trigger sqs from api 2026-02-26 12:58:33 +00:00
Daniel Roth
2ffd09bdd2 update subtask when processor completes 2026-02-24 15:28:18 +00:00
Daniel Roth
5646376d1e pass min and max IDs to consider to processor and db functions 2026-02-24 09:59:42 +00:00
Daniel Roth
31cfa47d8f dont worry about default scenarios 2026-02-20 17:10:53 +00:00
Daniel Roth
325e7f65e0 make sure Plan object is instantiated correctly. Additional logging 2026-02-20 16:13:30 +00:00
Daniel Roth
96fbd7f24c ensure all defaults are unset before setting new ones, refactor of processor 2026-02-20 15:26:40 +00:00
Daniel Roth
ec01e1d190 only get most recently added plans for scenario 2026-02-20 13:39:07 +00:00
Daniel Roth
ce94fb0573 handle some plans having zero cost 🟩 2026-02-20 11:35:12 +00:00
Daniel Roth
47de308bf3 reformatting 2026-02-20 10:39:16 +00:00
Daniel Roth
0e279b15ce handle all plans having zero cost 🟩 2026-02-20 10:36:22 +00:00
Daniel Roth
6dcb4d1d92 additional logging 2026-02-19 17:03:40 +00:00
Daniel Roth
63bef436d0 do batch update per portfolio not per property 2026-02-19 12:44:41 +00:00
Daniel Roth
dae74d2f8b Fix bug where default plans were not being unset if they weren't included in scenarios to be considered 2026-02-19 12:18:22 +00:00
Daniel Roth
b715a60d4a typo in log 2026-02-19 09:25:55 +00:00
Daniel Roth
c1aa5716be priority list is scenarios not plans 🟩 2026-02-18 17:26:22 +00:00
Daniel Roth
ce8c1d23e6 priority list is scenarios not plans 🟥 2026-02-18 17:24:17 +00:00
Daniel Roth
475b3d0e13 input is list of scenarios to consider not list of plans 2026-02-18 17:19:38 +00:00
Daniel Roth
490c8946d7 Unset existing default before setting new one 2026-02-18 17:11:00 +00:00
Daniel Roth
cc901d999b option to only consider a specific list of plans 2026-02-18 11:54:55 +00:00
Daniel Roth
b916551921 allow plan priority to be specified for plans with identical ouput 🟩 2026-02-18 11:20:08 +00:00
Daniel Roth
508f3f2859 make choose cheapest relevant plan method public as it's called from outside the module 2026-02-18 10:40:50 +00:00
Daniel Roth
9a177065b6 allow plan priority to be specified for plans with identical ouput 🟥 2026-02-18 10:06:40 +00:00
Daniel Roth
3a5df1a1f3 Better logging 2026-02-18 09:05:41 +00:00
Daniel Roth
fac418adbe Don't re-get scenarios for every plan 2026-02-17 15:25:51 +00:00
Daniel Roth
68c3a20d0a typehint correction 2026-02-16 12:04:49 +00:00
Daniel Roth
b99fb686dd only write to db if is_default value has changed 2026-02-16 11:59:03 +00:00
Daniel Roth
bd9e553e35 bulk update of plans 2026-02-13 14:50:48 +00:00
Daniel Roth
e0e50d696a fixes so it runs (as far as the database update), plus some temp prints 2026-02-13 12:26:31 +00:00
Daniel Roth
561594a6ca consistent use of Tuple 2026-02-13 09:45:15 +00:00
Daniel Roth
f34a6269f7 Move updating of is_default to domain rather than database layer 2026-02-13 09:39:25 +00:00
Daniel Roth
f955184260 refactor processor 2026-02-12 14:25:35 +00:00
Daniel Roth
b3fa7c3051 rename Plan and Scenario to PlanModel and ScenarioModel 2026-02-12 12:01:39 +00:00
Daniel Roth
e7f941d5e4 use sqlalchemy 2.0 typing in recommendations , and write processing logic 2026-02-12 10:00:47 +00:00
Daniel Roth
9faba4af42 set up postgres class 2026-02-11 17:22:00 +00:00
Daniel Roth
c67e4644e4 define processor and local runner 2026-02-10 18:11:50 +00:00