This is similar to the wait method in the Query Service and will wait by default indefinitely for a workflow job to complete and poll the server regularly to update the local status. When the job is completed (or failed) the method will return the workflow job object.

workflow_wait(job, max_seconds = NULL, poll_period = 0.5)

Arguments

job

WorkflowJob object, see post_job and get_job

max_seconds

raise an exception if the job runs longer than this

poll_period

Number of seconds to wait between polling (max 10 seconds)

Value

WorkflowJob object