Skip to content

fix(watch): query Workers Builds in batches of 20 scripts - #32

Merged
fabianzimber merged 1 commit into
mainfrom
fix/watch-builds-chunks
Nov 27, 2026
Merged

fabianzimber merged 1 commit into
mainfrom
fix/watch-builds-chunks

Conversation

@fabianzimber

@fabianzimber fabianzimber commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What

The Workers Builds watcher now calls GET /builds/builds/latest in batches of at most 20 script ids and merges the results.

Why

The endpoint accepts at most 20 external_script_ids per request. With more than 20 Workers on the account the single request fails, so the watcher stopped checking builds on every run.

How to test

npm test: the watcher test now uses 22 Workers and asserts that no request carries more than 20 ids. npm run typecheck.

@sonarqubecloud

Copy link
Copy Markdown

@fabianzimber
fabianzimber merged commit e46f8a8 into main Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant