pollProgress: Check a Crunch progress URL until it finishes

View source: R/progress.R

pollProgressR 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.


Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.