Model/tests
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
..
domain postcode_splitter: pure domain (UserAddress, sanitise_postcode, postcode_batching) 2026-05-19 16:45:47 +00:00
infrastructure infrastructure: typed S3/SQS clients (S3Client, CsvS3Client, SqsClient, Address2UprnQueueClient) 2026-05-19 17:12:21 +00:00
orchestration orchestration: add TaskOrchestrator.create_child_subtask primitive 2026-05-19 17:19:41 +00:00
repositories added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
utilities utilities/aws_lambda: @subtask_handler injects TaskOrchestrator as third positional arg 2026-05-19 17:31:27 +00:00
__init__.py added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00