From b02519320fbe1afd7f39ddb9a125fa35a24dd147 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Wed, 15 Jul 2026 09:42:24 +0000 Subject: [PATCH] update local trigger script --- scripts/list_properties_by_postcode.py | 6 ++- scripts/properties_by_postcode_838.txt | 68 ++++++++++++++++++++++++++ scripts/trigger_modelling_e2e_sqs.py | 4 +- 3 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 scripts/properties_by_postcode_838.txt diff --git a/scripts/list_properties_by_postcode.py b/scripts/list_properties_by_postcode.py index cea357ea2..975bfd53b 100644 --- a/scripts/list_properties_by_postcode.py +++ b/scripts/list_properties_by_postcode.py @@ -8,7 +8,7 @@ from __future__ import annotations # --------------------------------------------------------------------------- # CONFIG # --------------------------------------------------------------------------- -PORTFOLIO_ID: int = 796 +PORTFOLIO_ID: int = 838 # --------------------------------------------------------------------------- import sys @@ -27,7 +27,9 @@ engine = build_engine() with engine.connect() as conn: rows = conn.execute( - text("SELECT id, postcode FROM property WHERE portfolio_id = :pid ORDER BY postcode, id"), + text( + "SELECT id, postcode FROM property WHERE portfolio_id = :pid ORDER BY postcode, id" + ), {"pid": PORTFOLIO_ID}, ).fetchall() diff --git a/scripts/properties_by_postcode_838.txt b/scripts/properties_by_postcode_838.txt new file mode 100644 index 000000000..8126a6e44 --- /dev/null +++ b/scripts/properties_by_postcode_838.txt @@ -0,0 +1,68 @@ +'M11 1WN': [754931] +'M11 2LF': [754927] +'M11 3LS': [754878] +'M11 3NP': [754935] +'M11 3NT': [754839] +'M11 3QP': [754934] +'M11 3RQ': [754926] +'M11 3SU': [754860] +'M11 4BU': [754750] +'M11 4DF': [754912] +'M11 4HH': [754831] +'M11 4NF': [754915] +'M11 4PD': [754874] +'M11 4PP': [754824] +'M11 4PT': [754830] +'M11 4PW': [754916] +'M11 4PX': [754816] +'M11 4QS': [754922] +'M11 4RS': [754904] +'M11 4SD': [754930] +'M11 4WE': [754917] +'M11 4WF': [754921] +'M11 4WP': [754759] +'M11 4WT': [754925] +'M11 1WH': [754897, 754898] +'M11 3BN': [754858, 754859] +'M11 3LD': [754932, 754933] +'M11 3LN': [754928, 754929] +'M11 3RH': [754832, 754833] +'M11 4BT': [754913, 754914] +'M11 4DN': [754908, 754909] +'M11 4GA': [754804, 754805] +'M11 4NG': [754757, 754758] +'M11 4PH': [754828, 754829] +'M11 4PZ': [754910, 754911] +'M11 4RJ': [754923, 754924] +'M11 4RT': [754766, 754767] +'M11 3NJ': [754875, 754876, 754877] +'M11 4FB': [754905, 754906, 754907] +'M11 4NH': [754785, 754786, 754787] +'M11 4NZ': [754731, 754732, 754733] +'M11 4PL': [754817, 754818, 754819] +'M11 4QD': [754825, 754826, 754827] +'M11 4WL': [754918, 754919, 754920] +'M11 1NG': [754879, 754880, 754881, 754882] +'M11 3RF': [754844, 754845, 754846, 754847] +'M11 3RN': [754840, 754841, 754842, 754843] +'M11 4NJ': [754888, 754889, 754890, 754891] +'M11 4NQ': [754788, 754789, 754790, 754791] +'M11 4PQ': [754820, 754821, 754822, 754823] +'M11 4SA': [754776, 754777, 754778, 754779] +'M11 4WJ': [754792, 754793, 754794, 754795] +'M11 1WL': [754899, 754900, 754901, 754902, 754903] +'M11 3AG': [754834, 754835, 754836, 754837, 754838] +'M11 3LH': [754869, 754870, 754871, 754872, 754873] +'M11 4NL': [754892, 754893, 754894, 754895, 754896] +'M11 4PG': [754780, 754781, 754782, 754783, 754784] +'M11 4QB': [754883, 754884, 754885, 754886, 754887] +'M11 4PJ': [754760, 754761, 754762, 754763, 754764, 754765] +'M11 4PN': [754751, 754752, 754753, 754754, 754755, 754756] +'M11 3HL': [754861, 754862, 754863, 754864, 754865, 754866, 754867, 754868] +'M11 4DH': [754768, 754769, 754770, 754771, 754772, 754773, 754774, 754775] +'M11 4TL': [754796, 754797, 754798, 754799, 754800, 754801, 754802, 754803] +'M11 1NW': [754848, 754849, 754850, 754851, 754852, 754853, 754854, 754855, 754856, 754857] +'M11 4BZ': [754806, 754807, 754808, 754809, 754810, 754811, 754812, 754813, 754814, 754815] +'M11 4WU': [754734, 754735, 754736, 754737, 754738, 754739, 754740, 754741, 754742, 754743, 754744, 754745, 754746, 754747, 754748, 754749] + +Total postcodes: 66, total properties: 205 \ No newline at end of file diff --git a/scripts/trigger_modelling_e2e_sqs.py b/scripts/trigger_modelling_e2e_sqs.py index a4c6a4df1..84520393d 100644 --- a/scripts/trigger_modelling_e2e_sqs.py +++ b/scripts/trigger_modelling_e2e_sqs.py @@ -23,8 +23,8 @@ from utilities.logger import setup_logger # --------------------------------------------------------------------------- # CONFIG — edit these before running # --------------------------------------------------------------------------- -PORTFOLIO_ID: int = 796 -SCENARIO_ID: int = 1268 +PORTFOLIO_ID: int = 838 +SCENARIO_ID: int = 1296 SQS_QUEUE_NAME: str = "modelling_e2e-queue-dev" # Max number of properties to process this run (cost cap).