         redis.call('hdel', _:qk-locks,         mid)
         return nil
       end
+
+      redis.call('set', _:qk-ndry-runs, 0)
 
       local now         = tonumber(_:now)
       local lock_exp    = tonumber(redis.call('hget', _:qk-locks,    mid) or 0)

      if (not mid) or (mid == 'end-of-circle') then
        -- Set queue-wide polling backoff flag
        redis.call('psetex', _:qk-eoq-backoff, _:eoq-backoff-ms, 'true')
        return 'eoq-backoff'
      elseif redis.call('sismember', _:qk-recently-done, mid) == 1 then -- GC
        redis.call('lrem', _:qk-mid-circle, 1, mid) -- Efficient here

    :qk-retry-counts  (qkey qname "retry-counts")
    :qk-mid-circle    (qkey qname "mid-circle")
    :qk-recently-done (qkey qname "recently-done")
    :qk-eoq-backoff   (qkey qname "eoq-backoff?")
    :qk-ndry-runs     (qkey qname "ndry-runs")}
   {:now              (System/currentTimeMillis)
    :lock-ms          lock-ms
    :eoq-backoff-ms   eoq-backoff-ms}))
