Skip to contents

Polls a task, waiting for information about a deployment. If the task has results, the output will be a modified "Task" object with task$get_data() available to retrieve the results.

Usage

poll_task(task, wait = 1, callback = message)

Arguments

task

A Task object

wait

The interval to wait between polling

callback

A function to be called for each message received. Set to NULL for no callback

Value

Task The Task object that was input

Details

For a simple way to silence messages, set callback = NULL

See also

Other deployment functions: bundle_dir(), bundle_path(), bundle_static(), deploy(), download_bundle()