curl https://qstash.upstash.io/v2/workflows/logs \
-H "Authorization: Bearer <token>"
{
"cursor": "1686652644442-12",
"runs": [
{
"workflowRunId": "wfr_rj0Upr1rvdzGfz96fXNHh",
"workflowUrl": "https://feasible-eft-notably.ngrok-free.app/api/call",
"workflowState": "RUN_SUCCESS",
"workflowRunCreatedAt": 1736340463061,
"workflowRunCompletedAt": 1736340464684,
"steps": [
{
"steps": [
{
"stepName": "init",
"stepType": "Initial",
"callType": "step",
"messageId": "msg_7YoJxFpwkEy5zBp378JgvD6YBDPBEqkBPje2JGTCEUiASMJQ1FwY9",
"concurrent": 1,
"state": "STEP_SUCCESS",
"createdAt": 1736340463064
}
],
"type": "sequential"
},
{
"steps": [
{
"stepId": 1,
"stepName": "external call",
"stepType": "Run",
"callType": "step",
"messageId": "msg_26hZCxZCuWyyTWPmSVBrNCtiJGNsULmt63vFfcZxQ3sfYFKLZe2dKww4BSb2kVF",
"out": "1",
"concurrent": 2,
"state": "STEP_SUCCESS",
"createdAt": 1736340464111
},
{
"stepId": 2,
"stepName": "external call 2",
"stepType": "Run",
"callType": "step",
"messageId": "msg_26hZCxZCuWyyTWPmSVBrNB882AMRP1TsgzpygELRcLWep4ACNTTsCHhrZuaNLij",
"out": "2",
"concurrent": 2,
"state": "STEP_SUCCESS",
"createdAt": 1736340463895
}
],
"type": "parallel"
}
]
}
]
}
Fetch details about workflow runs
curl https://qstash.upstash.io/v2/workflows/logs \
-H "Authorization: Bearer <token>"
{
"cursor": "1686652644442-12",
"runs": [
{
"workflowRunId": "wfr_rj0Upr1rvdzGfz96fXNHh",
"workflowUrl": "https://feasible-eft-notably.ngrok-free.app/api/call",
"workflowState": "RUN_SUCCESS",
"workflowRunCreatedAt": 1736340463061,
"workflowRunCompletedAt": 1736340464684,
"steps": [
{
"steps": [
{
"stepName": "init",
"stepType": "Initial",
"callType": "step",
"messageId": "msg_7YoJxFpwkEy5zBp378JgvD6YBDPBEqkBPje2JGTCEUiASMJQ1FwY9",
"concurrent": 1,
"state": "STEP_SUCCESS",
"createdAt": 1736340463064
}
],
"type": "sequential"
},
{
"steps": [
{
"stepId": 1,
"stepName": "external call",
"stepType": "Run",
"callType": "step",
"messageId": "msg_26hZCxZCuWyyTWPmSVBrNCtiJGNsULmt63vFfcZxQ3sfYFKLZe2dKww4BSb2kVF",
"out": "1",
"concurrent": 2,
"state": "STEP_SUCCESS",
"createdAt": 1736340464111
},
{
"stepId": 2,
"stepName": "external call 2",
"stepType": "Run",
"callType": "step",
"messageId": "msg_26hZCxZCuWyyTWPmSVBrNB882AMRP1TsgzpygELRcLWep4ACNTTsCHhrZuaNLij",
"out": "2",
"concurrent": 2,
"state": "STEP_SUCCESS",
"createdAt": 1736340463895
}
],
"type": "parallel"
}
]
}
]
}
workflowRunId
filter will return all of them.To uniquely identify a single workflow run, include the workflowCreatedAt
timestamp in your filter.Value | Description |
---|---|
RUN_STARTED | The workflow has started to run and currently in progress. |
RUN_SUCCESS | The workflow run has completed succesfully. |
RUN_FAILED | Some errors has occured and workflow failed after all retries. |
RUN_CANCELED | The workflow run has canceled upon user request. |
Show child attributes
Value | Description |
---|---|
RUN_STARTED | The workflow has started to run and currently in progress. |
RUN_SUCCESS | The workflow run has completed succesfully. |
RUN_FAILED | Some errors has occured and workflow failed after all retries. |
RUN_CANCELED | The workflow run has canceled upon user request. |
Show child attributes
Hide child attributes
Value | Description |
---|---|
sequential | Indicates only one step is excuted sequentially |
parallel | Indicates multiple steps being executed in parallel. |
next | Indicates there is information about currently executing step(s) |
Show child attributes
Value | Function |
---|---|
Initial | The default step which created automatically |
Run | context.run() |
Call | context.call() |
SleepFor | context.sleepFor() |
SleepUntil | context.sleepUntil() |
Wait | context.waitForEvent() |
Notify | context.notify() |
Invoke | context.invoke() |
Value | Description |
---|---|
STEP_SUCCESS | Indicates only one step is excuted sequentially |
STEP_RETRY | Indicates multiple steps being executed in parallel. |
STEP_FAILED | Indicates there is information about currently executing step(s) |
STEP_CANCELED | Indicates there is information about currently executing step(s) |
SleepFor
.SleepUntil
.Wait
.Call
.Call
.Call
.Call
.Call
.Call
.Call
.curl https://qstash.upstash.io/v2/workflows/logs \
-H "Authorization: Bearer <token>"
{
"cursor": "1686652644442-12",
"runs": [
{
"workflowRunId": "wfr_rj0Upr1rvdzGfz96fXNHh",
"workflowUrl": "https://feasible-eft-notably.ngrok-free.app/api/call",
"workflowState": "RUN_SUCCESS",
"workflowRunCreatedAt": 1736340463061,
"workflowRunCompletedAt": 1736340464684,
"steps": [
{
"steps": [
{
"stepName": "init",
"stepType": "Initial",
"callType": "step",
"messageId": "msg_7YoJxFpwkEy5zBp378JgvD6YBDPBEqkBPje2JGTCEUiASMJQ1FwY9",
"concurrent": 1,
"state": "STEP_SUCCESS",
"createdAt": 1736340463064
}
],
"type": "sequential"
},
{
"steps": [
{
"stepId": 1,
"stepName": "external call",
"stepType": "Run",
"callType": "step",
"messageId": "msg_26hZCxZCuWyyTWPmSVBrNCtiJGNsULmt63vFfcZxQ3sfYFKLZe2dKww4BSb2kVF",
"out": "1",
"concurrent": 2,
"state": "STEP_SUCCESS",
"createdAt": 1736340464111
},
{
"stepId": 2,
"stepName": "external call 2",
"stepType": "Run",
"callType": "step",
"messageId": "msg_26hZCxZCuWyyTWPmSVBrNB882AMRP1TsgzpygELRcLWep4ACNTTsCHhrZuaNLij",
"out": "2",
"concurrent": 2,
"state": "STEP_SUCCESS",
"createdAt": 1736340463895
}
],
"type": "parallel"
}
]
}
]
}
Was this page helpful?