poll_task: Poll Task

View source: R/deploy.R

poll_taskR Documentation

Poll Task

Description

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

Details

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

Value

Task The Task object that was input

See Also

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


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.