Sha256: 30ce9dcc281370f9d9cdf9b1fff49446e1c23c9d06a57145b52b9ad00dfc479c
Contents?: true
Size: 812 Bytes
Versions: 2
Compression:
Stored size: 812 Bytes
Contents
# frozen_string_literal: true require "private_attr" require "sidekiq_publisher/version" require "sidekiq_publisher/job" require "sidekiq_publisher/worker" require "sidekiq_publisher/publisher" require "sidekiq_publisher/runner" require "sidekiq_publisher/railtie" if defined?(Rails) module SidekiqPublisher DEFAULT_BATCH_SIZE = 100 DEFAULT_JOB_RETENTION_PERIOD = 1.day.freeze class << self attr_accessor :logger, :exception_reporter attr_writer :batch_size, :job_retention_period def batch_size @batch_size || DEFAULT_BATCH_SIZE end def job_retention_period @job_retention_period || DEFAULT_JOB_RETENTION_PERIOD end # For test purposes def reset! @batch_size = nil @job_retention_period = nil @exception_reporter = nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_publisher-0.1.0 | lib/sidekiq_publisher.rb |
sidekiq_publisher-0.1.0.rc0 | lib/sidekiq_publisher.rb |