Summary

Current versions of the Scheduler allow only one action to be taken for each criterion on the Actions page. For example, JobA can start JobB when it finishes, but it can't start JobB and JobC at the same time.

It is possible to work around this limitation using the adsexec utility and an intermediate job.

More Information

Note: The adsexec utility is included with version 2.3.1 and later of the Arcana Scheduler. If you do not have the utility you can download it here.

For example, you want to have JobA start JobB and JobC when it completes with an acceptable return code. To do this:

  1. Create a batch file (called, for example, "startab.bat") that contains the following commands:

"c:\program files\arcana development\arcana scheduler\adsexec" JobB
"c:\program files\arcana development\arcana scheduler\adsexec" JobC

Replace "JobB" and "JobC" with the names of your jobs. Note that you must put quotation marks around the names if they contain spaces, and the names are case-sensitive.

  1. Create a new job called, for example, "Start B & C". Configure this job to run the batch file you created in step 1. Make sure the job is configured to run under a user account that has permission to administer the Scheduler.
  1. Edit the properties for JobA. On the Actions page, configure it to run "Start B & C" when the program completes with an acceptable return code. This will cause the batch job to be executed, which will in turn start JobB and JobC.
Job "JobA" --> Job "Start B & C" --> Batch file "startab.bat" --> adsexec.exe --> Job "JobB"
                                                              --> adsexec.exe --> Job "JobC"

Note that adsexec does not wait for the job to finish before it returns, so the batch file will start JobB and then immediately start JobC without waiting for JobB to finish.

Status

We are corrently developing a new version of the Scheduler that will allow more flexibility in configuring actions.