Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,30 @@
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
"eslint.rules.customizations": [
{
"rule": "*",
"severity": "warn"
}
],
"eslint.workingDirectories": [
{ "pattern": "apps/*/" },
{ "pattern": "packages/*/" },
{ "pattern": "tooling/*/" }
{
"pattern": "apps/*/"
},
{
"pattern": "packages/*/"
},
{
"pattern": "tooling/*/"
}
],
"tailwindCSS.experimental.configFile": {
"apps/docs/src/app/globals.css": ["apps/docs/**"]
"apps/docs/src/app/globals.css": [
"apps/docs/**"
],
"packages/monitoring-ui/src/styles/app.css": [
"packages/monitoring-ui/**"
]
},
"tailwindCSS.emmetCompletions": true,
"tailwindCSS.files.exclude": [
Expand All @@ -22,10 +38,15 @@
"**/.vscode/**"
],
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
[
"cva\\(([^)]*)\\)",
"[\"'`]([^\"'`]*).*?[\"'`]"
],
[
"cx\\(([^)]*)\\)",
"(?:'|\"|`)([^']*)(?:'|\"|`)"
]
],

"prettier.ignorePath": ".gitignore",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.preferences.autoImportFileExcludePatterns": [
Expand All @@ -48,4 +69,4 @@
"files.associations": {
"*.css": "tailwindcss"
}
}
}
24 changes: 12 additions & 12 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,44 +26,44 @@
"@next/mdx": "16.0.1",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-compose-refs": "1.1.2",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dialog": "1.1.15",
"@radix-ui/react-dropdown-menu": "2.1.16",
"@radix-ui/react-id": "1.1.1",
"@radix-ui/react-primitive": "2.1.4",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-separator": "1.1.8",
"@radix-ui/react-slot": "1.2.4",
"@radix-ui/react-tabs": "1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
"@radix-ui/react-tooltip": "1.2.8",
"@vercel/og": "0.8.5",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"date-fns": "^4.1.0",
"globby": "15.0.0",
"interweave": "13.1.1",
"lucide-react": "0.552.0",
"lucide-react": "0.553.0",
"multimatch": "7.0.0",
"next": "16.0.1",
"next-themes": "latest",
"p-map": "7.0.3",
"react": "19.2.0",
"react-dom": "19.2.0",
"read-pkg": "^9.0.1",
"read-pkg": "^10.0.0",
"rehype-mdx-import-media": "1.2.0",
"remark-frontmatter": "5.0.0",
"remark-gfm": "4.0.1",
"remark-mdx-frontmatter": "5.2.0",
"remark-squeeze-paragraphs": "6.0.0",
"remark-strip-badges": "7.0.0",
"renoun": "10.9.0",
"renoun": "10.9.1",
"tm-grammars": "1.25.3",
"tm-themes": "1.10.12",
"ts-morph": "27.0.2",
"tw-animate-css": "^1.4.0",
"tw-animate-css": "1.4.0",
"use-debounce": "10.0.6",
"zod": "4.1.12"
},
"devDependencies": {
"@tailwindcss/postcss": "4.1.16",
"@tailwindcss/postcss": "4.1.17",
"@tailwindcss/typography": "0.5.19",
"@types/mdx": "2.0.13",
"@types/node": "22.19.0",
Expand All @@ -83,10 +83,10 @@
"postcss": "8.5.6",
"prettier": "^3.6.2",
"serve-handler": "6.1.6",
"tailwind-merge": "3.3.1",
"tailwindcss": "4.1.16",
"tailwind-merge": "3.4.0",
"tailwindcss": "4.1.17",
"tailwindcss-animate": "1.0.7",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/batch-processing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"devDependencies": {
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/drizzle-custom-schema-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dotenv-cli": "11.0.0",
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/drizzle-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@types/pg": "8.15.6",
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
4 changes: 2 additions & 2 deletions examples/drizzle-pglite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"db:push": "drizzle-kit push"
},
"dependencies": {
"@electric-sql/pglite": "^0.3.13",
"@electric-sql/pglite": "^0.3.14",
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/core": "workspace:*",
"drizzle-orm": "^0.44.7"
},
"devDependencies": {
"@types/node": "22.19.0",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/drizzle-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"dotenv-cli": "11.0.0",
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/event-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"devDependencies": {
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/kysely-custom-schema-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dotenv-cli": "11.0.0",
"kysely-ctl": "^0.19.0",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/kysely-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dotenv-cli": "11.0.0",
"kysely-ctl": "^0.19.0",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/pm2-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"drizzle-kit": "^0.31.6",
"pm2": "6.0.13",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/prisma-client-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"dotenv-cli": "11.0.0",
"prisma": "^6.19.0",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/prisma-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dotenv-cli": "11.0.0",
"prisma": "^6.19.0",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/prisma-custom-schema-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dotenv-cli": "11.0.0",
"prisma": "^6.19.0",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion examples/progress-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"devDependencies": {
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
4 changes: 2 additions & 2 deletions examples/result-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"db:push": "drizzle-kit push"
},
"dependencies": {
"@electric-sql/pglite": "^0.3.13",
"@electric-sql/pglite": "^0.3.14",
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/core": "workspace:*",
"drizzle-orm": "^0.44.7"
},
"devDependencies": {
"drizzle-kit": "^0.31.6",
"tsx": "4.20.6",
"typescript": "^5.9.3"
"typescript": "5.9.3"
}
}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"dev": "turbo dev --filter='@vorsteh-queue/*'",
"dev:docs": "turbo dev --filter docs",
"dev:monitoring-ui": "turbo dev --filter '@vorsteh-queue/monitoring-ui'",
"preview": "pnpm -F docs preview",
"build": "turbo build",
"build:docs": "turbo build --filter docs",
Expand Down Expand Up @@ -41,21 +42,21 @@
},
"devDependencies": {
"@changesets/cli": "2.29.7",
"@vitest/coverage-v8": "4.0.7",
"@vitest/ui": "4.0.7",
"@vitest/coverage-v8": "4.0.8",
"@vitest/ui": "4.0.8",
"@vorsteh-queue/prettier-config": "workspace:*",
"prettier": "^3.6.2",
"sherif": "1.8.0",
"turbo": "2.6.0",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^4.0.7"
"typescript": "5.9.3",
"vite-tsconfig-paths": "5.1.4",
"vitest": "^4.0.8"
},
"prettier": "@vorsteh-queue/prettier-config",
"pnpm": {
"overrides": {
"esbuild@<=0.24.2": ">=0.25.0",
"vite@>=6.0.0 <=6.3.5": "6.3.6"
"vite@>=6.0.0 <=6.4.0": "6.4.1"
}
}
}
8 changes: 4 additions & 4 deletions packages/adapter-drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@vorsteh-queue/core": "workspace:*"
},
"devDependencies": {
"@electric-sql/pglite": "^0.3.13",
"@electric-sql/pglite": "^0.3.14",
"@vorsteh-queue/eslint-config": "workspace:*",
"@vorsteh-queue/prettier-config": "workspace:*",
"@vorsteh-queue/shared-tests": "workspace:*",
Expand All @@ -77,10 +77,10 @@
"eslint": "^9.39.1",
"postgres": "^3.4.7",
"prettier": "^3.6.2",
"rolldown": "1.0.0-beta.47",
"rolldown": "1.0.0-beta.49",
"rollup-plugin-delete": "^3.0.1",
"typescript": "^5.9.3",
"vitest": "^4.0.7"
"typescript": "5.9.3",
"vitest": "^4.0.8"
},
"peerDependencies": {
"drizzle-orm": ">=0.44.3"
Expand Down
22 changes: 22 additions & 0 deletions packages/adapter-drizzle/src/postgres-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,28 @@ export class PostgresQueueAdapter<
return result
}

async getQueueJobs(): Promise<BaseJob[]> {
const jobs = await this.db
.select()
.from(this.model)
.where(eq(this.model.queueName, this.queueName))

return jobs.map((job) => this.transformJob(job as schema.QueueJob))
}

async getJobDetails(id: string): Promise<BaseJob> {
const [job] = await this.db
.select()
.from(this.model)
.where(and(eq(this.model.queueName, this.queueName), eq(this.model.id, id)))

if (!job) {
throw new Error(`Job with ID ${id} not found in queue ${this.queueName}`)
}

return this.transformJob(job as schema.QueueJob)
}

async clearJobs(status?: JobStatus): Promise<number> {
const conditions = [eq(this.model.queueName, this.queueName)]
if (status) {
Expand Down
8 changes: 4 additions & 4 deletions packages/adapter-kysely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@vorsteh-queue/core": "workspace:*"
},
"devDependencies": {
"@electric-sql/pglite": "^0.3.13",
"@electric-sql/pglite": "^0.3.14",
"@vorsteh-queue/eslint-config": "workspace:*",
"@vorsteh-queue/prettier-config": "workspace:*",
"@vorsteh-queue/shared-tests": "workspace:*",
Expand All @@ -82,10 +82,10 @@
"kysely-postgres-js": "^3.0.0",
"postgres": "^3.4.7",
"prettier": "^3.6.2",
"rolldown": "1.0.0-beta.47",
"rolldown": "1.0.0-beta.49",
"rollup-plugin-delete": "^3.0.1",
"typescript": "^5.9.3",
"vitest": "^4.0.7"
"typescript": "5.9.3",
"vitest": "^4.0.8"
},
"peerDependencies": {
"kysely": ">=0.28.0"
Expand Down
Loading
Loading