pollProgress {crunch} | R Documentation |
Check a Crunch progress URL until it finishes
Description
You'll probably only call this function if progress polling times out and its
error message tells you to call pollProgress
to resume.
Usage
pollProgress(progress_url, wait = 0.5, error_handler = NULL)
Arguments
progress_url |
A Crunch progress URL |
wait |
Number of seconds to wait between polling. This time is increased 20 percent on each poll. |
error_handler |
An optional function that takes the status object when the progress is less than 0 (meaning the request failed) |
Value
The percent completed of the progress. Assuming the
options(crunch.timeout)
(default: 15 minutes) hasn't been reached, this
will be 100. If the timeout is reached, it will be the last reported progress
value.
[Package crunch version 1.30.4 Index]