Sha256: c1e82c31e9620ec8a3395aefb348832af9caf369cc3d076a98f08b8f181357bc

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

namespace :sidekiq do
  namespace :monitor do
    desc 'Sidekiq-monitor events cleanup'
    task :cleanup => :environment do
      ttl = Sidekiq::Monitor.events_ttl || 3.weeks
      Sidekiq::Monitor::Event.older_than(ttl.ago).delete_all
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-monitor-0.0.2 lib/sidekiq/monitor/tasks.rb