WaitForJobToComplete: Wait for specified job to complete

View source: R/WaitForJobToComplete.R

WaitForJobToCompleteR Documentation

Wait for specified job to complete

Description

Wait for specified job to complete

Usage

WaitForJobToComplete(project, jobId, maxWait = 600)

Arguments

project

character. Either (1) a character string giving the unique alphanumeric identifier for the project, or (2) a list containing the element projectId with this identifier.

jobId

integer identifier (returned for example by RequestPrimeModel)

maxWait

maximum time to wait (in seconds) for the job to complete

Examples

## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  blueprints <- ListBlueprints(projectId)
  blueprint <- blueprints[[1]]
  jobId <- RequestNewModel(projectId, blueprint)
  WaitForJobToComplete(projectId, jobId)

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.