Skip to content

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Oct 15, 2024

On top of #3307

This removes apalis, and insert jobs in the new queue. This doesn't yet process those new jobs

Copy link

cloudflare-workers-and-pages bot commented Oct 15, 2024

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

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

View logs

@sandhose sandhose force-pushed the quenting/new-queue/initial branch from 80aa6fa to f060abe Compare October 30, 2024 14:28
@sandhose sandhose force-pushed the quenting/new-queue/insert-jobs branch from 8aab159 to 28d01c0 Compare October 31, 2024 16:39
@sandhose sandhose marked this pull request as ready for review October 31, 2024 17:09
@sandhose sandhose requested a review from reivilibre October 31, 2024 17:09
@sandhose sandhose force-pushed the quenting/new-queue/initial branch from f060abe to 76afd6a Compare October 31, 2024 17:14
@sandhose sandhose force-pushed the quenting/new-queue/insert-jobs branch from 28d01c0 to c3237ce Compare October 31, 2024 17:14
Copy link
Contributor

@reivilibre reivilibre left a 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>(
Copy link
Contributor

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...

Copy link
Member Author

@sandhose sandhose Nov 22, 2024

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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL query_scalar

@sandhose sandhose force-pushed the quenting/new-queue/initial branch from 76afd6a to 2774175 Compare November 19, 2024 16:27
@sandhose sandhose force-pushed the quenting/new-queue/insert-jobs branch from c3237ce to 36921bd Compare November 19, 2024 16:27
@sandhose sandhose added the A-Jobs Related to asynchronous jobs label Nov 21, 2024
@sandhose sandhose force-pushed the quenting/new-queue/initial branch from 2774175 to 0495c66 Compare November 22, 2024 16:03
@sandhose sandhose force-pushed the quenting/new-queue/insert-jobs branch from 36921bd to 4cbd066 Compare November 22, 2024 16:04
@sandhose sandhose force-pushed the quenting/new-queue/initial branch from 60feb71 to 5358f8f Compare December 5, 2024 10:14
@sandhose sandhose force-pushed the quenting/new-queue/insert-jobs branch from 4cbd066 to 0000132 Compare December 5, 2024 10:14
@sandhose sandhose force-pushed the quenting/new-queue/insert-jobs branch from 0000132 to fdc3d9a Compare December 5, 2024 17:03
@sandhose sandhose force-pushed the quenting/new-queue/initial branch from 5358f8f to 2692d9a Compare December 5, 2024 17:03
Base automatically changed from quenting/new-queue/initial to quenting/new-queue/merge December 6, 2024 08:21
@sandhose sandhose merged commit 3395526 into quenting/new-queue/merge Dec 6, 2024
2 checks passed
@sandhose sandhose deleted the quenting/new-queue/insert-jobs branch December 6, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Jobs Related to asynchronous jobs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants