-
Notifications
You must be signed in to change notification settings - Fork 10
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
Consume jobs from the new job queue #3455
base: quenting/new-queue/insert-jobs
Are you sure you want to change the base?
Changes from all commits
1fdf0f7
c1e4335
29181e7
612d9ad
0d5c391
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- Copyright 2024 New Vector Ltd. | ||
-- | ||
-- SPDX-License-Identifier: AGPL-3.0-only | ||
-- Please see LICENSE in the repository root for full details. | ||
|
||
-- Add a new status for failed jobs | ||
ALTER TYPE "queue_job_status" ADD VALUE 'failed'; | ||
|
||
ALTER TABLE "queue_jobs" | ||
-- When the job failed | ||
ADD COLUMN "failed_at" TIMESTAMP WITH TIME ZONE, | ||
-- Error message of the failure | ||
ADD COLUMN "failed_reason" TEXT, | ||
-- How many times we've already tried to run the job | ||
ADD COLUMN "attempt" INTEGER NOT NULL DEFAULT 0, | ||
-- The next attempt, if it was retried | ||
ADD COLUMN "next_attempt_id" UUID REFERENCES "queue_jobs" ("queue_job_id"); |
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.
should this also say
AND next_attempt_id IS NULL
?