Skip to content

feat(taskbroker): Add drain mode#669

Draft
untitaker wants to merge 7 commits into
mainfrom
drain-mode
Draft

feat(taskbroker): Add drain mode#669
untitaker wants to merge 7 commits into
mainfrom
drain-mode

Conversation

@untitaker
Copy link
Copy Markdown
Member

@untitaker untitaker commented Jun 3, 2026

ref STREAM-1042

Add a drain flag that tells taskbroker to not consume from anything, but instead just serve up its activationstore.

Postgres currently works with this because if there are no assigned partitions, it does infact drain. Sqlite has always work.

This will probably be useful for rollbacks and incident response, but I haven't thought too deeply about it. Maybe for later.

It naturally falls out of #668, all we change is that instead of allowing 1..n topics, we allow 0..n topics.

untitaker and others added 7 commits June 3, 2026 11:50
Add a `drain: true` config flag that lets a broker start with zero
consumable topics (and thus no consumers) and just flush whatever is
already in its store out to workers, while upkeep keeps running. Used to
move a topic off a broker by editing config: the old broker keeps
draining its DB.

ref STREAM-1042

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 3, 2026

STREAM-1042

Base automatically changed from multi-topic-impl to main June 3, 2026 15:53
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