Module: Shinq::Statistics
- Defined in:
- lib/shinq/statistics.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 |
# File 'lib/shinq/statistics.rb', line 6 def run until @stop Shinq.logger.info Shinq::Client.queue_stats(table_name: Shinq.configuration.worker_name.pluralize) sleep Shinq.configuration.statistics end end |
#stop ⇒ Object
13 14 15 |
# File 'lib/shinq/statistics.rb', line 13 def stop @stop = true end |