02 Wait For Facility And Capture Audit Task
โถStep 2: Wait for the facility ingest โ and capture the create task
Same as step 2 for the facility upload: poll
GET /ingestions/{{fp_fac_task_id}} until audit_trail_task_id
appears, then capture it into {{fp_fac_audit_task}}. Facility
processing generates the shed + plots before deforestation runs, so the
poll budget is a bit larger.
If this step exhausts its poll budget (no
audit_trail_task_idon acompletedtask), the worker reached the terminal but its fast-path dispatch failed and was swallowed โ check the worker logs forfast-path audit-trail: dispatch failed. The create task is re-dispatched on the next ingest re-run (pointer persisted before dispatch), so it isn't lost.
โ Step 3: Poll Facility Create Task.