fix: stop the schedule seed overwriting operator edits - #2951
Merged
Conversation
#2848 changed the seed's conflict clause to DO UPDATE SET command so the 46 existing rows would migrate from `pnpm hardhat <task>` to the new `pnpm exec tsx tasks/run.ts <task>` invocation. Seeds re-run on every runner boot, so that also silently overwrote parameters operators had set in the admin UI: on 2026-07-27 the deploy reset all 46 rows to stock defaults, losing the flags on stake_validator and remove_validator. The migration it was added for has now completed — the seed applied on the 23:15:59Z boot, so every row already carries the tsx invocation. Reverting to DO NOTHING therefore loses nothing and stops future deploys from clobbering operator state. cron_expr, enabled and signer_override were never in the clause and were unaffected throughout. Also drop the duplicate seed application in runner.ts: runContainer already applies every migrations/seed_*.sql before starting the scheduler, so this ran the same file twice per boot and bypassed the client-side seed validation.
sparrowDom
requested review from
clement-ux,
naddison36 and
shahthepro
as code owners
July 27, 2026 23:29
apexearth
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Should be deployed along: https://github.com/oplabs/talos/pull/23