removeUnprocessedChildren-2.lua 598 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Remove a job from all the statuses it may be in as well as all its data.
  3. In order to be able to remove a job, it cannot be active.
  4. Input:
  5. KEYS[1] jobKey
  6. KEYS[2] meta key
  7. ARGV[1] prefix
  8. ARGV[2] jobId
  9. Events:
  10. 'removed' for every children removed
  11. ]]
  12. -- Includes
  13. --- @include "includes/removeJobWithChildren"
  14. local prefix = ARGV[1]
  15. local jobId = ARGV[2]
  16. local jobKey = KEYS[1]
  17. local metaKey = KEYS[2]
  18. local options = {
  19. removeChildren = "1",
  20. ignoreProcessed = true,
  21. ignoreLocked = true
  22. }
  23. removeJobChildren(prefix, jobKey, options)