-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Problem
Running wp datamachine flows list on the events site (336 flows) timed out after 30 seconds. This is not a large dataset — the command likely does N+1 queries (loading full flow configs, pipeline joins, or scheduling status checks per row).
Impact
Agents and operators can't quickly check flow status via CLI. The events site is the primary consumer and 336 flows should be well within acceptable performance.
Likely Cause
The command probably:
- Loads full
flow_configandscheduling_configJSON blobs per row - Joins to pipelines table without index optimization
- Possibly resolves execution status from the jobs table per flow
Suggestion
- Add a
--fieldsflag to limit which columns are fetched (skip large JSON blobs by default) - Add pagination (
--per-page,--page) - Consider a summary mode that only shows flow_id, name, pipeline, interval, and last run status
- Ensure the query uses indexed lookups
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels