Skip to content

🚸(apps) run the db_migrate job before starting application pods#411

Open
sampaccoud wants to merge 1 commit intomasterfrom
make-dbmigrate-before-starting-pods
Open

🚸(apps) run the db_migrate job before starting application pods#411
sampaccoud wants to merge 1 commit intomasterfrom
make-dbmigrate-before-starting-pods

Conversation

@sampaccoud
Copy link
Contributor

Purpose

If we run db_migrate after starting the new pod:

  • the current pod has to be compatible with the state of the db before and after the migration.
  • the new pod has to be compatible with the state of the database before and after a migration. This is not possible for a new database, and not easy for schema updates.

If we run db_migrate before starting a new pod, the new pod only has to be
compatible with the state of the database after the migration.

Proposal

Tag all db_migrate jobs as pre jobs.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants