waitForJobStatus

fun waitForJobStatus(job: Job, statusType: Job.Status): Job

Given a Job document (has jobname/jobid), waits for the given status of the job. This API will poll for the given status once every 3 seconds for at least 1000 times. If the polling interval/duration is NOT sufficient, use waitForStatusCommon method to adjust.

Return

job document

Parameters

job

document of the z/OS job to wait for (see z/OSMF Jobs APIs for details)

statusType

status type, see JobStatus.Type object

Throws

error processing wait check request


fun waitForJobStatus(jobName: String, jobId: String, statusType: Job.Status): Job

Given the jobname/jobid, waits for the given status of the job. This API will poll for the given status once every 3 seconds for at least 1000 times. If the polling interval/duration is NOT sufficient, use waitForStatusCommon method to adjust.

Return

job document

Parameters

jobName

the z/OS jobname of the job to wait for output status (see z/OSMF Jobs APIs for details)

jobId

the z/OS jobid of the job to wait for output status (see z/OSMF Jobs APIS for details)

statusType

status type, see JobStatus.Type object

Throws

error processing wait check request