Description Usage Arguments Value Author(s) References See Also Examples
Queries the job status from casjobs every 2 seconds and waits for the casjobs job to return a status of 3, 4, or 5 (Cancelled, Failed or Finished, respectively).
1 | CasJobs.waitForJob(jobId, verbose=TRUE)
|
jobId |
id of job (integer). |
verbose |
message printing option. |
If TRUE, will print "wait" messages on the screen while the job is not done. If FALSE, will suppress printing messages on the screen.
Returns a list containing the job status and related metadata. The "Status" field can be equal to 0 (Ready), 1 (Started), 2 (Canceling), 3(Canceled), 4 (Failed) or 5 (Finished). Throws an exception if the user is not logged into SciServer (use Authentication.login
for that purpose). Throws an exception if the HTTP request to the CasJobs API returns an error.
Gerard Lemson, Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R
CasJobs.submitJob
, CasJobs.getJobStatus
, CasJobs.cancelJob
.
1 | CasJobs.waitForJob(CasJobs.submitJob("select 1"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.