Open topic with navigation

TIBCO GridServer® 7.1.0

# The Depends Statement

Multiple `job` blocks can be included in a single PDS file, and by default, they run sequentially. It is also possible to define jobs that run other jobs that require the completion or failure of the current job using the `depends` statement. `depends` is used within a job block, and defines if another job after the current job in the PDS file must run either on the completion or failure of the current job. For example, the following code within a job runs `firstjob` if the current job succeeds, `secondjob` if it fails, and `thirdjob` in either case:

    depends
        firstjob succeeds
        secondjob fails
        thirdjob succeeds or fails
    end

You can also run the `pdriver` command with the `-parallel` flag to run multiple jobs in one PDS file in parallel.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.