We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using until_and_while_executing, RubyReaper treats runtime lock as orphan and delete it, which causes duplicate running jobs.
in the follow codes, digest in workers is without suffix "RUN"
def active?(digest) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity Sidekiq.redis do |conn| procs = conn.sscan_each("processes").to_a return false if procs.empty? procs.sort.each do |key| valid, workers = conn.pipelined do conn.exists(key) conn.hgetall("#{key}:workers") end next unless valid next unless workers.any? workers.each_pair do |_tid, job| next unless (item = safe_load_json(job)) payload = safe_load_json(item[PAYLOAD]) return true if payload[LOCK_DIGEST] == digest return true if considered_active?(payload[CREATED_AT]) end end false end end
The text was updated successfully, but these errors were encountered:
Thanks for the report @yaoyi, I'll see what I can do about that!
Sorry, something went wrong.
Released as v7.0.5
mhenrixon
Successfully merging a pull request may close this issue.
when using until_and_while_executing, RubyReaper treats runtime lock as orphan and delete it, which causes duplicate running jobs.
in the follow codes, digest in workers is without suffix "RUN"
The text was updated successfully, but these errors were encountered: