Model/utilities/aws_lambda
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
..
__init__.py added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
default_orchestrator.py added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
subtask_handler.py utilities/aws_lambda: @subtask_handler injects TaskOrchestrator as third positional arg 2026-05-19 17:31:27 +00:00
subtask_trigger_body.py added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
task_handler.py added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00