Skip to content

feat(taskbroker): Add Migration Flag and Pipeline Stage#673

Open
george-sentry wants to merge 4 commits into
mainfrom
george/push-taskbroker/migrate-on-deploy
Open

feat(taskbroker): Add Migration Flag and Pipeline Stage#673
george-sentry wants to merge 4 commits into
mainfrom
george/push-taskbroker/migrate-on-deploy

Conversation

@george-sentry
Copy link
Copy Markdown
Member

Linear

Refs STREAM-1088

Description

We need to perform migrations with a sufficiently privileged user, and we don't want taskbrokers stumbling over each other to perform migrations every time they restart. Instead, we can perform migrations and create all necessary databases during deployment one time.

Changes...

  • New --run / -r argument that either runs the broker (default) or migrations
  • New pg_ddl_username and pg_ddl_password config fields for the user that will perform migrations
  • When run with --run=migrations, it creates the necessary database if it doesn't already exist, runs sqlx::migrate!, and exits

@george-sentry george-sentry requested a review from a team as a code owner June 3, 2026 21:45
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 3, 2026

STREAM-1088

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 714044c. Configure here.

Comment thread src/run.rs Outdated
Comment thread src/store/adapters/postgres.rs
Comment thread src/run.rs Outdated
Comment thread src/run.rs Outdated
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