Skip to content

Commit e0c463b

Browse files
committed
fix jobs cleanup query
1 parent f7b3af3 commit e0c463b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/platform/zodWorker.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ export class ZodWorker<TMessageCatalog extends MessageCatalogSchema> {
692692
const rawResults = await $replica.$queryRawUnsafe(
693693
`SELECT id
694694
FROM ${this.graphileWorkerSchema}.jobs
695-
WHERE run_at > $1
695+
WHERE run_at < $1
696696
AND locked_at IS NULL
697697
AND max_attempts = attempts
698698
LIMIT $2`,

0 commit comments

Comments
 (0)