-
Notifications
You must be signed in to change notification settings - Fork 57
Insert jobs using the new queue #3367
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
Insert jobs using the new queue #3367
Conversation
Deploying matrix-authentication-service-docs with
|
Latest commit: |
fdc3d9a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://19e4cb91.matrix-authentication-service-docs.pages.dev |
Branch Preview URL: | https://quenting-new-queue-insert-jo.matrix-authentication-service-docs.pages.dev |
80aa6fa
to
f060abe
Compare
8aab159
to
28d01c0
Compare
f060abe
to
76afd6a
Compare
28d01c0
to
c3237ce
Compare
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.
LGTM
Box::new(PgQueueWorkerRepository::new(self.conn.as_mut())) | ||
} | ||
|
||
fn queue_job<'c>( |
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.
...job_queue
? Minor but queue
is also a verb, so this sounds like it's enqueuing a job...
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.
I also wasn't sure, but I try to keep the repository names close to the related table names 🤷
.fetch_one(&pool) | ||
.await | ||
.expect("Deactivation job to be scheduled"); | ||
let job: Json<serde_json::Value> = sqlx::query_scalar( |
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.
TIL query_scalar
76afd6a
to
2774175
Compare
c3237ce
to
36921bd
Compare
2774175
to
0495c66
Compare
36921bd
to
4cbd066
Compare
60feb71
to
5358f8f
Compare
4cbd066
to
0000132
Compare
0000132
to
fdc3d9a
Compare
5358f8f
to
2692d9a
Compare
On top of #3307
This removes apalis, and insert jobs in the new queue. This doesn't yet process those new jobs