Class: Railscope::FlushService
- Inherits:
-
Object
- Object
- Railscope::FlushService
- Defined in:
- lib/railscope/flush_service.rb
Constant Summary collapse
- BUFFER_KEY =
"railscope:buffer"- UPDATES_KEY =
"railscope:buffer:updates"- BATCH_SIZE =
100- MAX_RETRIES =
3
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
10 11 12 |
# File 'lib/railscope/flush_service.rb', line 10 def self.call new.call end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 |
# File 'lib/railscope/flush_service.rb', line 14 def call total = flush_entries apply_pending_updates total end |