mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
1.1 KiB
1.1 KiB
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | ordinal | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-2 | Add POST /bulk-uploads/{task_id}/combine FastAPI route | To Do | 2026-04-20 | 2026-04-20 11:53 |
|
high | 10000 |
Description
Expose HTTP route to trigger bulk_address2uprn_combiner:
POST /bulk-uploads/{task_id}/combine
Creates a new sub_task under task_id, then pushes {task_id, sub_task_id} to the combiner SQS queue (see backend/bulk_address2uprn_combiner/main.py for consumer shape).
Idempotency: if bulk_address_uploads.combined_output_s3_uri already set for this task, return 200 with {already_combined: true} (mirror current frontend behaviour).
Acceptance Criteria
- #1 Route returns 202 with {task_id, sub_task_id} on new trigger
- #2 Returns 200 {already_combined: true} if combined_output_s3_uri already set
- #3 SQS message enqueued with correct shape
- #4 Queue URL from config
- #5 Auth via validate_token