apphost.addon.logs ​
Read the last lines of the Buzz relay pod on a claimed AppHost site. One-shot tail, not a stream.
One-shot tail of the Buzz relay. Do not stream secrets into chat.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-apphost |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | uuid | Yes | — | — |
addon | string | No | buzz | — |
tail_lines | integer | No | 80 | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | uuid | No | — | — |
addon | string | No | — | — |
tail_lines | integer | No | — | — |
resolve | json | No | — | — |
pods | json | No | — | — |
pick | json | No | — | — |
logs | json | No | — | — |
ack | json | No | — | — |
failure_reason | string | No | — | Engine-stamped failure reason |
failure_type | string | No | — | Stable failure classification |
failed_action | string | No | — | Action that failed |
failed_at_state | string | No | — | State when the workflow failed |
failed_step | json | No | — | Failed DAG step envelope |
failed_layer | json | No | — | Failed DAG layer envelope |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
compensation_trigger | json | No | — | — |
comp_queue | json | No | — | — |
comp_current_layer | json | No | — | — |
comp_retry_count | json | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | resolve | apphost.addon.resolve | apphost.web.ack |
| 2 | pods | kubernetes.pod.list | apphost.web.ack |
| 3 | pick | apphost.addon.logs-pick | apphost.web.ack |
| 4 | logs | kubernetes.pod.logs | — |
Execution Flow ​
Compensation ​
When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
apphost.addon.resolve | resolve |
kubernetes.pod.list | pods |
apphost.addon.logs-pick | pick |
kubernetes.pod.logs | logs |
apphost.web.ack | ack |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
read | SUCCESS | Relay logs returned | logs |
failed | FAILURE | Apphost workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "apphost.addon.logs",
"initial_data": {
"site_uuid": "value"
}
}