Dash in key prefix causes issue with watchStuckJobs()
Open
- Dominant language
- JavaScript
- Stars
- 9.4k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
The dash screws up the regex in the Lua script:
`local jt = string.match(v, "' + prefix + ':jobs:(.*):inactive")`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating watchStuckJobs() and the Lua script containing the shown string.match expression. Reproduce the problem with a key prefix containing a dash, then verify that inactive jobs are matched correctly when the prefix includes that character.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, lua, node.js, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100