Sha256: b780977b6c446ad690d7debdc737d1173f31f05e6b1f9aac2cfafd1f443073e7

Contents?: true

Size: 649 Bytes

Versions: 11

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  module Orphans
    #
    # Class DeleteOrphans provides deletion of orphaned digests
    #
    # @note this is a much slower version of the lua script but does not crash redis
    #
    # @author Mikael Henriksson <mikael@zoolutions.se>
    #
    class LuaReaper < Reaper
      #
      # Delete orphaned digests
      #
      #
      # @return [Integer] the number of reaped locks
      #
      def call
        call_script(
          :reap_orphans,
          conn,
          keys: [DIGESTS, SCHEDULE, RETRY, PROCESSES],
          argv: [reaper_count],
        )
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.0.0.beta25 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta24 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta23 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta22 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta21 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta20 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta19 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta18 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta17 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta16 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb
sidekiq-unique-jobs-7.0.0.beta15 lib/sidekiq_unique_jobs/orphans/lua_reaper.rb