Execution of a scheduled job
The scheduled job is used to execute a macro at a scheduled date or time and with a
configurable specified sequence. The scheduled job is run when the Next Run Time (in UTC) is encountered.
These are the available rules that are used to execute a scheduled job:
- The Run As user must have permission to execute the selected macro.
- The scheduled job allows the context of the parameters to the macro, if applicable and populated. The parameters such as Cycle, Module, Production Scheduling Model, Planning Engine, and Scenario.
- The parameter variables (%cycle%, %planningengine%, %schedulingmodel%) that are available in the system macro are replaced with the job scheduler context within the macro.
- The cycle context in the job scheduler determines the Cycle in which the macro is executed for the Cycle Period macro.
- The planning engine context in the job scheduler determines the Planning Engine in which the macro is executed for the Planning Engine macro.
- The Scenario macro is executed in the running Cycle Period for the specified Cycle, Module, and Scenario within the job scheduler.
- The context within the job scheduler is not considered for the scheduled jobs, if the Cycle, Scenario, Module, Planning Engine, or Production Scheduling Model is hardcoded within the macro.
- The Next Run Time (in UTC) is updated after execution to indicate when the next job to be executed.