Using Recurring Jobs - Intergraph Batch Services - Help

Intergraph Batch Services Help

Language
English
Product
Intergraph Batch Services
Search by Category
Help

Recurring jobs are batch jobs that are scheduled to run more than once at a regular interval. If you have a task that recurs on a regular basis, such as a nightly backup, you can schedule it as a recurring job. You only schedule a recurring job once, and then Batch Services automatically runs all future occurrences of the job for you.

Using Batch Manager:

  1. Select Job > Submit, or click Submit Job Job Submit on the toolbar.

  2. Complete the Job Submit dialog as appropriate. Use the Scheduling tab to select the interval for your job (hourly, daily, weekly, monthly, or yearly) and to supply additional scheduling information.

  3. Click OK to submit the job.

    The job will continue to run on its scheduled interval until you delete the job.

To schedule recurring XPDA backups, you must set the COMPUTERNAME variable to your computer's name in the xpdabackup.bat file.

As an example, we will schedule a system backup to run every Monday and Thursday at 7:00 PM, starting on the first of February 2011. To do this, take the following steps:

  1. Open Batch Manager, and select the queue to which you want to submit the recurring job.

  2. Select Job > Submit.

  3. Browse for and select the backup script that you want to run.

  4. Select the Scheduling tab.

  5. Select weekly job frequency by choosing the Weekly radio button. When the Weekly radio button is selected, additional controls, which allow us to indicate more specific information for weekly recurring jobs, will appear.

  6. Select a weekly frequency of every 1 week.

  7. Select the Monday and Thursday checkboxes, making sure that no other checkboxes are selected.

  8. Set the effective date to February 1, 2011.

  9. Set the start time to 19:00 (7:00 PM). The Next Occurrence field will note that the first occurrence of the backup job will be run on Monday, February 1, 2011 at 7:00PM.

  10. Click OK to submit the job.

    The job will appear in the selected queue with a status of RECURRING.

Using the command line:

You cannot submit recurring jobs via the command line interface.

Using the Batch API:

Use the QueueBatchJob function being sure to complete the flags field and the recurrence fields with your recurring job information.