Method: Octospy::Worker#thread_loop
- Defined in:
- lib/octospy/worker.rb
#thread_loop ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/octospy/worker.rb', line 16 def thread_loop debug 'thread_start', <<-MSG.compact api_request_interval(A): #{Octospy.api_request_interval}, repoisitory_count(R): #{@repositories.count}, worker_interval(W): #{Octospy.worker_interval}, work_interval(A*R+W): #{work_interval} MSG @thread = Thread.start { loop { work } } end |