Skip to content
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

Add Queue interface and BrowserQueue implementation #1095

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

habdelra
Copy link
Contributor

@habdelra habdelra commented Mar 15, 2024

This PR adds the Queue interface that both the browser queue and the node queue (based on postgres) will implement. (99.99% of this diff in is the lock file which are mostly deletions--so don't be intimidated to review). BTW I'm using pnpm version 8.15.4. it looks like it wanted to do some serious cleanup....

Comment on lines +3 to +16
export type Expression = (string | Param)[];

export type PgPrimitive =
| number
| string
| boolean
| JSON.Object
| JSON.Arr
| null;

export interface Param {
param: PgPrimitive;
kind: 'param';
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will be very handy in the future when we start making sql expressions, for now we just the PgPrimitive

Copy link

github-actions bot commented Mar 15, 2024

Test Results

533 tests  +2   529 ✔️ +2   7m 26s ⏱️ +17s
    1 suites ±0       4 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit cb04012. ± Comparison against base commit 2b28723.

♻️ This comment has been updated with latest results.

@backspace
Copy link
Contributor

BTW I'm using pnpm version 8.15.4.

Should we make this the version specified for Volta?

@habdelra
Copy link
Contributor Author

BTW I'm using pnpm version 8.15.4.

Should we make this the version specified for Volta?

I have no strong feelings on this

@habdelra habdelra merged commit 3a5ea41 into main Mar 18, 2024
18 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cs-6459-review-home-grown-job-queue-implementation branch March 18, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants