mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-19 17:03:02 +00:00
Reads the recipe from sub_task.inputs, assembles the Download Package via the orchestrator (source docs from each row's bucket -> ZIP -> the dedicated DOCUMENT_EXPORTS_BUCKET), returns the presigned URL + skip summary for sub_task.outputs. Dockerfile/requirements mirror bulk_upload_finaliser. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
19 lines
620 B
Python
19 lines
620 B
Python
from uuid import UUID
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class BulkDocumentDownloadTriggerBody(BaseModel):
|
|
"""SQS trigger for the bulk_document_download Lambda (ADR-0055/0060).
|
|
|
|
Attach mode: the FastAPI route created the Task + SubTask and pinned the
|
|
recipe (``landlord_property_ids``, ``recipient_email``, ``package_name``)
|
|
onto the SubTask's ``inputs``. The message therefore carries only the
|
|
identifiers — the (potentially large) property set never travels through the
|
|
256 KB SQS body.
|
|
"""
|
|
|
|
model_config = ConfigDict(extra="allow")
|
|
|
|
task_id: UUID
|
|
subtask_id: UUID
|