Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhamlin committed Mar 15, 2023
1 parent 4fa58f2 commit 0229d28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plans.js
Expand Up @@ -364,11 +364,12 @@ function fetchNextJob (schema) {
WHEN singletonKey IS NOT NULL
AND singletonKey LIKE '${SINGLETON_QUEUE_KEY_ESCAPED}%'
THEN NOT EXISTS (
SELECT *
SELECT 1
FROM ${schema}.job active_job
WHERE active_job.state = '${states.active}'
AND active_job.name = j.name
AND active_job.singletonKey = j.singletonKey
LIMIT 1
)
ELSE
true
Expand Down

0 comments on commit 0229d28

Please sign in to comment.