Upgrading
Versions
Tappet follows Semantic Versioning. Before 1.0, a minor release (0.x.0) may contain breaking changes; they are listed under Changed in the changelog with migration steps. Patch releases never require more than replacing the binary.
Container images are tagged with the exact version (0.4.2), the minor line (0.4) and latest.
Pin the exact version in production and upgrade deliberately.
Single node
-
Read the changelog entries between your version and the target.
-
Take a backup (see Backups).
-
Replace the binary or image and restart:
# systemd sudo install -m 0755 tappet /usr/local/bin/tappet && sudo systemctl restart tappet # Docker Compose docker compose pull && docker compose up -d
Migrations run automatically at startup. Executions that were running are checkpointed on shutdown and resume after the restart; waiting executions are unaffected.
HA, without downtime
Database migrations within a minor release line are backward compatible: the previous version keeps working against the migrated schema. That allows a rolling upgrade:
-
Back up the database.
-
Run migrations once, with the new version:
tappet migrateWith Helm, the chart runs this as a pre-upgrade hook Job when
migrations.job.enabledis true. -
Roll the API processes one at a time. The load balancer drains each process; webhooks keep being accepted by the others.
-
Roll the workers. Each worker stops claiming, checkpoints or finishes its executions within
TAPPET_SHUTDOWN_TIMEOUT, and releases its leases; other workers continue.
When a release notes that a migration is not backward compatible (only in a minor or major release, and always called out), stop all processes, migrate, then start the new version.
Downgrading
Downgrades are not supported once a newer version has migrated the database. To go back, restore the backup taken before the upgrade.