Hourly Constraint in Batch Task

By | February 22, 2021

We may come across where we need to execute the batch task for only particular time for the rest of the batch server should not be in active state so that the other process can utilize the working space. In Sage X3 we can setup this making the setup in such a way so that only for that particular time the batch server will work, in the rest of time it will in inactive state.

To execute the batch server for particular time frame we need to execute perform the below setup:

Batch Calendar:

We need to setup the batch calendar: This include the start and end Date on which the batch server will be active and will be executing the task. For the rest of the period the batch task will not be in active state.

In this screen we would be able to mention multiple range of the date on which the batch server needs to be active. If the current date fall in the below given multiple range then it will go-ahead to check the other condition. This is the first date check is utilized.

In the next step we need to navigate: —

All > Setup > Usage >Batch Server

In the above screen, we need to mention the constraint name and description.

Workday: This will help us to decide the working weekday for batch task to be active. We can mark the day as if we need to consider as working weekday. We will be not marking the checkbox if this is not the working weekday. This bifurcation will help us to not execute the batch task in the working time of the user while entering the transaction so that server will be utilized in the user and not batch task.

Calendar: The batch server calendar which executed in the earlier step will be utilized to fetch the date of the execution.

Hours /Day worked: In this we would be able to mention the start and end time of the batch server to be active and executing the task. If the current weekday falls in the calendar date and does satisfies the working day, it will follow this time zone.

Hours(worked ) other days: In this we would be able to set the time of the for the non-working days which we have unmarked in workdays. If the current weekday falls in the calendar date and doesn’t satisfies the working day, it will follow this time zone.

According to this setup we will be executing the batch server for only particular time constraint and would release the server for the other process.

Execution:

It will check the date from the calendar attached, then it would check the weekday of the execution. If the weekday is satisfied then it will check the hours of the execution. Incase if the weekdays is not satisfied it will follow the time of the range from the second the grid to check the time of active batch task.