aria.resume ​
Resume a suspended service on the revision it was serving.
Put a suspended service back on the air, on its existing revision.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-aria |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
slug | string | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
service | json | No | — | The service after the change |
failure_reason | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | integer | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
resumed | SUCCESS | The service is answering again | service |
failed | FAILURE | The action was refused or failed | failure_reason |
Business Errors ​
| Code | Message Template |
|---|---|
ARIA_SERVICE_NOT_FOUND | No such service in this organization |
ARIA_INVALID_STATE | The service is not in a state where that makes sense |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "aria.resume",
"initial_data": {
"slug": "value"
}
}