Skip to main content

Dependent Jobs

Dependent jobs: When a job needs to wait for other jobs to run or finish before starting, you can configure its dependencies. name indicates the dependent job name, and status indicates the status of the dependent job.

Usage

jsub -w     #Specify dependency (done or exit)
jmod -w #Modify dependency
jmod -wn #Cancel dependency
jjobs -l #Displays dependency properties
jhist -l #Shows dependency-related operation events

Submitting Dependent Jobs

jsub -w "done(JobID)" test.sh 

user web-1

Viewing Dependent Jobs

jjobs -l JobID

user web-1

Canceling Job Dependency

jmod -wn JobID

user web-1

Modifying Job Dependency

jmod -w "done(JobID)" JobID

user web-1

Viewing Job Dependency Modification History

jhist -l jobID

user web-1