get_flow_runs_by_flow
Retrieve flow runs for a specific workflow in Prefect, with options to filter by state type, limit results, and paginate through large datasets.
Instructions
Get flow runs for a specific flow.
Args: flow_id: The flow UUID limit: Maximum number of flow runs to return offset: Number of flow runs to skip state_type: Filter by state type (e.g., "RUNNING", "COMPLETED", "FAILED")
Returns: A list of flow runs for the specified flow
Input Schema
Name | Required | Description | Default |
---|---|---|---|
flow_id | Yes | ||
limit | No | ||
offset | No | ||
state_type | No |
Input Schema (JSON Schema)
{
"properties": {
"flow_id": {
"title": "Flow Id",
"type": "string"
},
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Limit"
},
"offset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Offset"
},
"state_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "State Type"
}
},
"required": [
"flow_id"
],
"type": "object"
}