-
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
Insert jobs using the new queue #3367
base: quenting/new-queue/initial
Are you sure you want to change the base?
Insert jobs using the new queue #3367
Conversation
Deploying matrix-authentication-service-docs with Cloudflare Pages
|
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
fn queue_worker<'c>( | ||
&'c mut self, | ||
) -> Box<dyn mas_storage::queue::QueueWorkerRepository<Error = Self::Error> + 'c> { | ||
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
On top of #3307
This removes apalis, and insert jobs in the new queue. This doesn't yet process those new jobs