Skip to content

Rollback

Returning to a previous version after an unsuccessful change: rolling back code, data, or a model to a working state.

Why Needed

Changes do not always succeed. A new model version may be worse, an updated text may have errors, a deployment may have a bug. Rollback provides the ability to quickly revert to the previous state.

How Ensured

  • backup — saving the old state before the change;
  • versions — keeping a history of versions (Git, model registry);
  • idempotence — so that a repeated operation does not break.

Example

Before mass replacement of product descriptions, old texts are saved. If the new ones are bad, the script restores the old ones from the backup.

See Also

← All terms