Automatic Resume of Replenishment Calculation

In this article

To enable automatic resume of Replenishment jobs

To view the Scheduler Job States

See also

When a Replenishment calculation is executed by the scheduler job, the system automatically saves progress at defined checkpoints. In the event of a failure or interruption, the job can automatically resume from the last saved checkpoint, minimizing reprocessing and reducing overall execution time. This feature is supported for Out of Stock, Replenishment Item Quantity (RIQ), and Replenishment Journal calculations.

To enable automatic resume of Replenishment jobs

To enable the automatic resume feature, you must configure specific parameters on the Scheduler Job page.

  1. Click the icon, enter Scheduler Job List, and select the relevant link.
  2. Select an existing scheduler job that is assigned with the following object, depending on the process:
  3. Process Object
    Out of Stock Codeunit 10012203 (LSC Replen. Out of Stock Mgt.)
    Note: For parallel calculation, select the master scheduler job (assigned with codeunit 10012214 (LSC Replen. Parl. Master SaaS)).
    Replenishment Item Quantity Codeunit 10012200 (LSC Replen. - Calc. Qtys)
    Note: For parallel calculation, select the master scheduler job (assigned with codeunit 10012214 (LSC Replen. Parl. Master SaaS)).
    Replenishment Journal Codeunit 10012276 (LSC Replen. Automatic Run)
    Redistribution Journal Codeunit 10012224 (LSC Redist. Automatic Run)
  4. In the General FastTab, under the Job Auto-Resume section, fill in the following fields:
  5. Field Description
    Auto-Resume from Last Calculation This field specifies whether the job should be automatically resumed by the Task Scheduler in LS Central, in the event of a failure or interruption.
    Auto-Resume Time Window (Min) This field specifies the time window in minutes, where if a job is re-run and the elapsed time since the last full calculation run is within this window, it will resume from the last calculation.
    Maximum No. of Attempts to Resume This field specifies the maximum number of attempts for the job to resume before stopping.

For parallel Out of Stock and RIQ calculations, the configurations should be done on the master scheduler job. The automatic resume related settings are also accessible on the Replen. Parallel Jobs page for the master job.

When the scheduler job executes, the checkpoint information is updated in the Scheduler Job State table. If the job is interrupted and then resumed, it will continue the calculation from the last checkpoint.

While the Scheduler Job State is updated for all Out of Stock and RIQ jobs, including linked jobs when the processes are run in parallel, automatic resume is only supported for the background session and Job Queue approaches. It is not supported for NAS service tiers.

To support the automatic resume of the scheduler job, you must configure it to run through the Task Scheduler in LS Central. For more information, see Scheduler.

You also have the option to resume the scheduler job directly from the Scheduler Job page.

Note: For parallel calculation with Job Queues, you need to also define the Job Queue Rerun Time Window (Min) setting in the Replen. Setup, which specifies the time in minutes after which the Job Queue will not be re-run by Business Central process in the event of a failure. This ensures LS Central can properly manage and resume the Job Queue entries of the linked jobs. The default value for this setting is 5 minutes.

To view the Scheduler Job States

When the Replenishment calculation is executed by the scheduler job, checkpoint information is updated in the Scheduler Job State table. This information is available on the Scheduler Job List page, where you can view details such as the Last Processed Code/No., No. of Records to Process, and No. of Processed Records.

You can access the Scheduler Job States page by drilling down into any of these fields, which provides more detailed information about the job’s status and execution progress.

  1. Click the icon, enter Scheduler Job List, and select the relevant link.
  2. On the Scheduler Job List, drill down on the value of the Last Processed Code/No., No. of Records to Process, or No. of Processed Records field for the job.
  3. This will open the Scheduler Job States page, which shows all the Scheduler Job State records.
  4. Fields

    Field Description
    Scheduler Job ID This field shows the unique identifier of the scheduler job that this state record tracks.
    Child Job ID This field shows the identifier of the linked job when this scheduler job runs as part of a parallel calculation setup.
    Last Processed Code/No. This field shows the last record identifier processed by the job. For Out of Stock and RIQ calculations, this represents the last processed Item No. The frequency at which checkpoints are updated is defined with the Item Counter Interval setting in the Replen. Setup. For Replenishment Journal calculation, this represents the last processed Replenishment Template Code.
    No. of Processed Records This field shows the number of records that have been successfully processed.
    No. of Records to Process This field shows the total number of records that need to be processed by the job.
    Last Processed Code/No. 2 This field shows the secondary identifier of the last processed record. For RIQ calculation with RIQ Templates, this represents the last processed RIQ Template Code. For Replenishment Journal calculation, this represents the last processed Batch No.
    Last Full Calculation Date Time This field shows the date and time of the scheduler job's last full calculation run.
    Last Resume Calculation Date Time This field shows the date and time when the scheduler job was last resumed from a previous interruption or failure.
    No. of Resume Attempts This field shows how many times the system has attempted to resume this job after interruptions or failures.
    Completed This field shows whether the scheduler job has finished processing all records successfully.

    Note: For parallel Out of Stock and RIQ calculations, the No. of Processed Records and No. of Records to Process fields in a master scheduler job show the sum of the corresponding values from its linked jobs.

See also

Replenishment Out of Stock Days

Calculation of Replenishment Item Quantity

Replenishment Journals

Store Stock Redistribution