Projektstart
This commit is contained in:
12
backend/node_modules/bullmq/dist/cjs/commands/includes/getNextDelayedTimestamp.lua
generated
vendored
Normal file
12
backend/node_modules/bullmq/dist/cjs/commands/includes/getNextDelayedTimestamp.lua
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
--[[
|
||||
Function to return the next delayed job timestamp.
|
||||
]]
|
||||
local function getNextDelayedTimestamp(delayedKey)
|
||||
local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
|
||||
if #result then
|
||||
local nextTimestamp = tonumber(result[2])
|
||||
if nextTimestamp ~= nil then
|
||||
return nextTimestamp / 0x1000
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user