Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

JobRun - findAllRunKeysByJobKey


JobRun - findAllRunKeysByJobKey

Description :

This command finds all the job run keys for a given job.

Return type : String

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Key for the job.

Example

The following example shows how to find job run keys for an Audit Job and select a particular job run:

Script


JOB_GROUP=/audits

JOB_NAME=audit_nocdb

TODAY=`date +%Y%m%d`





JOB_KEY=`blcli AuditJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`

RUN_KEYS=`blcli JobRun findAllRunKeysByJobKey $JOB_KEY`



for RUN_KEY in ${RUN_KEYS}

do

START_TIME=`blcli JobRun getStartTimeByRunKey $RUN_KEY "yyyyMMdd"`

if [ "$START_TIME" = "$TODAY" ]

then

NEEDED_RUN_KEY=$RUN_KEY

fi

done

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*