Skip to content

feat(indexer): configurable events-per-poll cap - #220

Merged
Ashborne267 merged 3 commits into
StreamGive:mainfrom
dumbdevss:feat/indexer-batch-size
Oct 8, 2026
Merged

Ashborne267 merged 3 commits into
StreamGive:mainfrom
dumbdevss:feat/indexer-batch-size

Conversation

@dumbdevss

Copy link
Copy Markdown
Contributor

Add INDEXER_MAX_EVENTS_PER_POLL validation and pass the limit to Stellar RPC. Persist the last handled event cursor so capped polls resume without dropping same-ledger events. Consolidate the duplicate checkpoint model and restore the malformed worker polling loop required for the feature to run.

Closes #116

Tests: npm test -- --run test/indexer/worker.test.ts (5 passed); npx eslint src/indexer/worker.ts src/indexer/checkpoint.ts test/indexer/worker.test.ts

Add INDEXER_MAX_EVENTS_PER_POLL validation and pass the limit to Stellar RPC. Persist the last handled event cursor so capped polls resume without dropping same-ledger events. Consolidate the duplicate checkpoint model and restore the malformed worker polling loop required for the feature to run.

Closes StreamGive#116

Tests: npm test -- --run test/indexer/worker.test.ts (5 passed); npx eslint src/indexer/worker.ts src/indexer/checkpoint.ts test/indexer/worker.test.ts
@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@dumbdevss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Ashborne267

Copy link
Copy Markdown
Contributor

@dumbdevss please fix conflicts

@Ashborne267
Ashborne267 merged commit a9310a0 into StreamGive:main Oct 8, 2026
1 check failed
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.

Make the number of events processed per poll configurable

2 participants