Scheduling a site-level job

To schedule a job to run for your site:

  1. Open the Administration Console and select Site on the Administration Console Site/Store Selection page.
  2. From the Configuration menu, click Scheduler. A list of jobs that are scheduled to run for your site displays.
  3. Click New. The Schedule Job window opens.
  4. From the Job command list, select the type of job you want to run.
    Note: Although the ReleasetoFulfillment command displays in this list, it is not supported for site level jobs.
  5. Complete the following fields:
    1. From the Job command list, select the URL-based command you want to run.
    2. In the Job parameters field, type the parameters of the command you want to run in the format of a URL query string. For example, if the scheduled command requires that you specify the order and contract ID, the URL query string representation to specify these parameters would be "orderId=10023&contractId=1002". All special characters, such as &, =, /, and ?, must be encoded using standard HTML coding. If you use the form provided, the encoding will be done for you.
    3. Under Start date and Start time, provide the date and time this job should start running. The time must be entered in the 24 hour clock format.
    4. In the Associated user field, type the user on whose behalf this job is run. By default, the user ID of the current user is entered in this field. The value of this field should be the same as the value in the LOGONID column of the USERREG database table.
    5. In the Allowed host field, type the name of the host that should run this job. If this parameter is omitted, the job can be run by any host. This parameter is only needed if the scheduler is running on multiple hosts and if a job needs to be restricted to one of them. The host name should be in the form: name.domain.
    6. In the Schedule interval field, type the number of seconds between successive runs of this job. If this parameter is omitted, the job is run only once.
    7. In the Job attempts and Seconds to retry fields, type the number of times the scheduler should retry the job if it fails and the number of seconds before a failed job is retried. Both field must be present to re-try a job.
    8. In the Scheduler policy field, specify the policy to be used by the scheduler when the job has failed to run. Type 0 if The job is run only once and the next run is scheduled for the future; this is the default. Type 1 if the job is run as many times as necessary to recover all missed runs.
    9. In the Job priority field, type the number associated with the priority of this job. This value is inserted into the SCCPRIORITY column of the SCHCONFIG table. A greater number indicates a higher priority job.
    10. In the Application type field, type the application schedule pool that the job will be a part of. The purpose of this field is to constrain resource-intensive jobs to a limited number of threads. The application types, and the rules governing their access to resources, are defined by the user in the XML server configuration file. The default application type is null.
  6. Click OK. Your job is now listed on the Scheduler Status Display page and will run at the specified start time.
  7. From the Job command list, select the job, then complete the fields as shown in the table and click OK. Repeat for each command shown in the following table.
    Scheduled job name Job parameters Recommended start time Recommended interval (seconds) Recommended priority
    ExecuteSpecifiedCommandForHostedStores commandName=BalancePayment 00:00 86,400 1
    ExecuteSpecifiedCommandForHostedStores commandName=PayCleanup 00:00 86,400 1
    ExecuteSpecifiedCommandForHostedStores commandName=ProcessBackorders 00:00 86,400 8
    ExecuteSpecifiedCommandForHostedStores commandName=RAReallocate 00:00 86,400 1
    ExecuteSpecifiedCommandForHostedStores commandName=ReleaseExpiredAllocations 00:00 3,600 8
    ExecuteSpecifiedCommandForHostedStores commandName=ReleaseToFulfillment 00:00 3,600 10
    ReportsNotify 00:00 86,400 1
    The jobs are now listed on the Scheduler Status Display page and will run at the specified start time.

Note: The time in the Start time field must be entered in the 24 hour clock.

Feedback