getJobScheduler-1.js 468 B

1234567891011121314151617181920
  1. const content = `--[[
  2. Get job scheduler record.
  3. Input:
  4. KEYS[1] 'repeat' key
  5. ARGV[1] id
  6. ]]
  7. local rcall = redis.call
  8. local jobSchedulerKey = KEYS[1] .. ":" .. ARGV[1]
  9. local score = rcall("ZSCORE", KEYS[1], ARGV[1])
  10. if score then
  11. return {rcall("HGETALL", jobSchedulerKey), score} -- get job data
  12. end
  13. return {nil, nil}
  14. `;
  15. export const getJobScheduler = {
  16. name: 'getJobScheduler',
  17. content,
  18. keys: 1,
  19. };
  20. //# sourceMappingURL=getJobScheduler-1.js.map