JobRun - getJobRunStatusByScheduleId

JobRun - getJobRunStatusByScheduleId

Description :

This command returns a string indicating job run status. Status can be:

  • NOT_STARTED
  • RUNNING
  • INCOMPLETE
  • COMPLETE
  • PAUSED
  • RESUMING
  • ABORTED
  • DOESNT_EXIST

Return type : String

Command Input :

Variable Name

Variable Type

Description

scheduleId

Integer

Schedule ID of the job.

Example

The following example shows how to find the status of a job run based on the job's schedule ID.

Script

JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots tstSnap` 

SCHEDUlE_ID=`blcli Job executeAgainstServers $JOB_KEY engrhas21agt1,engrhas21agt2' 

blcli JobRun getJobRunStatusByScheduleId $SCHEDULE_ID 



Was this page helpful? Yes No Submitting... Thank you

Comments