← Back to list
01Issue
FeatureShippedSwamp CLIPublicEnterprise
Assigneesstack72
Relationships
#240 summarise: timeout/hang on repos with many workflow runs
Opened by webframp · 5/5/2026· Shipped 5/5/2026
Feature Request
swamp summarise --since 1d --json hangs/times out on repos with thousands of workflow runs. In our testing repo with ~3000+ workflow runs, the command never returns even after 30+ seconds.
Context
When using swamp at scale (e.g., running workflows in automation loops), the data volume grows quickly:
- 1.7GB in
.swamp/directory - 1.1GB in data alone
- Thousands of workflow runs
swamp summarise appears to scan all runs within the time window without pagination or streaming.
Proposed Solutions
- Add
--limit N— cap the number of items processed/reported - Stream output — emit results incrementally as they're computed (especially useful for
--jsonmode where an agent can start processing partial results) - Show progress — in interactive mode, show a progress indicator for large scans
- Sample mode —
--sample 100to randomly sample N runs for statistical summary rather than exhaustive scan
Workaround
Use targeted queries instead:
# This works even with large datasets:
swamp data query 'modelName == "my-model"' --limit 10 --json
swamp workflow runs my-workflow --json | head -20Environment
- swamp version: 20260504.233645.0-sha.430c1535
- Repo data size: 1.7GB, ~3000+ workflow runs
02Bog Flow
Shipped
Click a lifecycle step above to view its details.
03Sludge Pulse
Sign in to post a ripple.