meta.instagram.container.await
Poll an Instagram media container until status_code=FINISHED (or ERROR/EXPIRED/timeout). Uses schedule_transition — no auto_advance self-loop.
Overview
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-meta |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
connection_uuid | string | Yes | — | — |
creation_id | string | Yes | — | — |
timeout_seconds | integer | No | — | — |
poll_interval | integer | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
connection_uuid | string | Yes | — | — |
creation_id | string | Yes | — | — |
timeout_seconds | integer | No | — | — |
poll_interval | integer | No | — | — |
poll_count | integer | No | — | — |
started_at_epoch | integer | No | — | — |
status_code | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at | string | No | — | ISO timestamp when the workflow failed |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
completed_at | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | start | — |
waiting | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | start | waiting | — |
waiting | poll | waiting | — |
waiting | finish | completed | — |
waiting | timeout | failed | — |
* (any state) | fail | failed | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | IG container finished | creation_id, status_code |
failed | FAILURE | IG container await failed | failure_reason |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "meta.instagram.container.await",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"creation_id": "value"
}
}