lib/samson/periodical.rb
# method to test things out on console / testing
# simulates timeout that Concurrent::TimerTask does and exception reporting
method to test things out on console / testing
simulates timeout that Concurrent::TimerTask does and exception reporting
method to test things out on console / testing simulates timeout that Concurrent :: TimerTask does and exception reporting
def run_once(name)
        config = registered.fetch(name)
        Timeout.timeout(config.fetch(:timeout_interval)) do
          execute_block(config)
        end
      rescue
        ExceptionReporter.new(name).update(nil, nil, $!)
      end
def run_once ( name ) config = registered . fetch ( name ) Timeout . timeout ( config . fetch ( :timeout_interval ) ) do execute_block ( config ) end rescue ExceptionReporter . new ( name ) . update ( nil , nil , $! ) end
method to test things out on console / testing
simulates timeout that Concurrent::TimerTask does and exception reporting
method to test things out on console / testing simulates timeout that Concurrent :: TimerTask does and exception reporting
name