lib/torquebox_tester.rb
# Start a time-consuming background job and return immediately.
Start a time-consuming background job and return immediately.
Start a time - consuming background job and return immediately .
def start_background_and_return(times, pauses)
    logger.warn "#{@background_job_id} About to start twiddling #{times} times with #{pauses}-second waits and will return immediately afterward"
    background_job_set_total_steps times
    tracker = background_correlate(background.twiddle_thumbs(@background_job_id, times, pauses))
    logger.warn "#{@background_job_id} twiddle tracker = #{tracker}, correlation_id = #{tracker.correlation_id}, started = #{tracker.started?}, error = #{tracker.error?}, complete = #{tracker.complete?}, status = #{tracker.status}"
    logger.warn "Report : #{background_job_report}"
    "started task #{@background_job_id}"
  end
def start_background_and_return ( times , pauses ) logger . warn "#{@background_job_id} About to start twiddling #{times} times with #{pauses}-second waits and will return immediately afterward" background_job_set_total_steps times tracker = background_correlate ( background . twiddle_thumbs ( @background_job_id , times , pauses ) ) logger . warn "#{@background_job_id} twiddle tracker = #{tracker}, correlation_id = #{tracker.correlation_id}, started = #{tracker.started?}, error = #{tracker.error?}, complete = #{tracker.complete?}, status = #{tracker.status}" logger . warn "Report : #{background_job_report}" "started task #{@background_job_id}" end
Start a time-consuming background job and return immediately.
Start a time - consuming background job and return immediately .
times
<not_specific>
pauses
<not_specific>