Commit graph

12 commits

Author SHA1 Message Date
Jun-te Kim
d70e8a9e53 utilities/aws_lambda: @subtask_handler injects TaskOrchestrator as third positional arg
The wrapped function now receives the decorator-owned TaskOrchestrator as
a third positional argument so handlers can compose their own use-case
orchestrator that shares the session, instead of opening a second Postgres
connection per invocation.

Both existing callers (backend/ordnanceSurvey/main.py and
backend/bulk_address2uprn_combiner/main.py) have their signatures extended
to accept the new positional argument (typed Optional[TaskOrchestrator] so
the legacy backend.utils.subtasks.subtask_handler — which only passes two
args — keeps working until the migration to the new decorator lands).

@task_handler is intentionally unchanged in this slice; symmetry is
deferred per issue #1103.
2026-05-19 17:31:27 +00:00
Jun-te Kim
f7cf139a97 ignore if score is 0 2026-03-10 15:16:06 +00:00
Jun-te Kim
e279858bd6 got rid of code that me and dan worked on 2026-03-10 13:52:19 +00:00
Jun-te Kim
147982cb7c optional none 2026-03-09 13:28:16 +00:00
Jun-te Kim
4d013f3295 dan's pr 2026-03-09 13:23:20 +00:00
Jun-te Kim
1b9c26a2b6 back to origional format 2026-03-09 12:32:20 +00:00
124a34597a save so i can run it from mealcraft 2026-03-09 12:15:22 +00:00
Jun-te Kim
ef45ed62f8 ordance survey init file 2026-03-06 14:53:51 +00:00
Jun-te Kim
8163a97b97 get rid of df.head and control the inputs instead 2026-03-06 13:57:33 +00:00
Jun-te Kim
071a67e501 ordnancesurvey deployment 2026-03-06 13:29:25 +00:00
Jun-te Kim
815ce01082 lambda code works locally 2026-03-06 12:51:08 +00:00
Jun-te Kim
24b19dbf9a spelling mistake 2026-03-04 17:04:14 +00:00