Skip to content

feat: add cluster-aware pump reset functionality#51

Merged
jbiskur merged 1 commit intomainfrom
feat/pump-reset
Mar 24, 2026
Merged

feat: add cluster-aware pump reset functionality#51
jbiskur merged 1 commit intomainfrom
feat/pump-reset

Conversation

@jbiskur
Copy link
Contributor

@jbiskur jbiskur commented Mar 24, 2026

Summary

  • Add resetPump(position?) to PathwaysBuilder for repositioning the data pump cursor
  • Add clearState() to PumpStateManager interface and Postgres implementation
  • Add reset() to PathwayPump using @flowcore/data-pump's restart() method
  • Add cluster-aware reset coordination: worker nodes forward reset requests to the leader via WebSocket
  • New WS message types: reset, reset-ack, reset-fail with timeout handling

Test plan

  • All existing tests pass (72 steps green; postgres-state tests fail due to no local Postgres — pre-existing)
  • CI green

🤖 Generated with Claude Code

Add resetPump(position?) to PathwaysBuilder that repositions the data
pump cursor. In cluster mode, reset requests from workers are
automatically forwarded to the leader via WebSocket. Supports resetting
to a specific timeBucket/eventId or clearing persisted state entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jbiskur jbiskur merged commit 03f110b into main Mar 24, 2026
1 check passed
@jbiskur jbiskur deleted the feat/pump-reset branch March 24, 2026 10:37
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