-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backend: queue v2 migration steps #5029
base: main
Are you sure you want to change the base?
Conversation
Deploying windmill with Cloudflare Pages
|
…ve `v2_job_queue` row exists for foreign keys
Because of how views works (not null constraints not reflected), this migrations make sqlx queries impossible to compile (e.g. Uuid/Option), but all the already running code remain 100% compatible, while using the new schema. The caveats are pretty small and are discarded when all running server(s)/workers(s) are up to date:
To resume:
|
Another option is to temporarily change all checked queries that does not compile because of views to unchecked query in order to merge this, which allow to discover if the transparent migration works correctly, and then proceed with next steps: This PR:
Next PR(s):
|
RETURNS TRIGGER AS $$ | ||
BEGIN | ||
-- `v2_job`: Only `args` are updated | ||
IF NEW.__args IS DISTINCT FROM OLD.__args THEN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Text cast
No description provided.