seomoz / qless-core

Core Lua Scripts for qless
MIT License
85 stars 33 forks source link

ql:tracked set is leaking canceled jobs #40

Open databus23 opened 10 years ago

databus23 commented 10 years ago

I just noticed that the ql:tracked set in my productive Qless installation contained ~ 450.000 entries while there are only < 8.000 jobs this Qless installation is still aware off.

Digging into it a little is seems to me jids are only removed from the ql:tracked key when they are explicitly untracked. The jid is not removed from the ql:tracked set when the job is canceled. This leads to an ever growing ql:tracked sorted set which breaks the qless webui as soon as the tracked lua script takes longer then 5 seconds to loop through the set.

I'm still running on qless 0.9.3 but having a quick glimse at the current master of qless-core it seems to me this problem still exists.