Skip to content

Commit

Permalink
chore: remove or logic
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Nov 1, 2024
1 parent e07a2b0 commit 34732b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/addPrioritizedJob-8.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local delay, priority = storeJob(eventsKey, jobIdKey, jobId, args[3], ARGV[2],

-- Add the job to the prioritized set
local isPausedOrMaxed = isQueuePausedOrMaxed(metaKey, activeKey)
local markerScore = (jobCounter or 1) % (markerCount or 1)
local markerScore = jobCounter % (markerCount or 1)
addJobWithPriority( KEYS[1], priorityKey, priority, jobId, priorityCounterKey, isPausedOrMaxed, markerScore)

-- Emit waiting event
Expand Down
2 changes: 1 addition & 1 deletion src/commands/addStandardJob-8.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ local target, isPausedOrMaxed = getTargetQueueList(metaKey, KEYS[6], KEYS[1], KE

-- LIFO or FIFO
local pushCmd = opts['lifo'] and 'RPUSH' or 'LPUSH'
local markerScore = (jobCounter or 1) % (markerCount or 1)
local markerScore = jobCounter % (markerCount or 1)
addJobInTargetList(target, KEYS[8], pushCmd, isPausedOrMaxed, jobId, markerScore)

-- Emit waiting event
Expand Down

0 comments on commit 34732b5

Please sign in to comment.