module RunnerHelper
Periodically run in infinite loop
Constants
- TIMEOUT
- VERSION
Public Instance Methods
run_once()
click to toggle source
# File lib/runner_helper.rb, line 17 def run_once raise NotImplementedError.new, 'implement `run_once` method first' end
service()
click to toggle source
# File lib/runner_helper.rb, line 8 def service loop do run_once sleep self.class::TIMEOUT end rescue => ex ExceptionNotifier.notify_exception(ex) end