ifood.events.consume ​
Poll one batch of iFood order events, confirm still-open orders, persist, then acknowledge
One bounded consume cycle for one connection.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-ifood |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
connection_uuid | uuid | Yes | — | Organization-scoped iFood connection UUID |
merchant_refs | list | No | — | Restrict polling to these merchant references |
workflow_run_id | string | No | — | Engine-stamped parent DAG run id |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | — |
connection_uuid | uuid | No | — | — |
merchant_refs | list | No | — | — |
workflow_run_id | string | No | — | — |
poll_events | json | No | — | — |
confirm_orders | json | No | — | — |
persist_events | json | No | — | — |
ack_events | json | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | integer | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
provider_request_ref | string | No | — | — |
retryable | boolean | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | poll | ifood.events.poll | — |
| 2 | confirm | ifood.order.confirm | — |
| 3 | persist | data.commerce.entity.persist-batch | — |
| 4 | acknowledge | ifood.events.acknowledge | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
ifood.events.poll | poll_events |
ifood.order.confirm | confirm_orders |
data.commerce.entity.persist-batch | persist_events |
ifood.events.acknowledge | ack_events |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "ifood.events.consume",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value"
}
}