Job scheduler is a background server process that runs activities on a periodic basis. In a multinode cluster, job scheduler rules can run on multiple nodes.
For better performance, monitoring, and diagnostics, job scheduler rules replace advanced agents. You can use Job Scheduler rules to perform jobs that are configured to run at a particular time, such as system cleanup jobs.
You can associate a job scheduler rule to a node type, and you can run the rule on any node or all nodes of that type. Configure job scheduler rules to run on the following schedules:
- Multiple times a day
If you configure your job scheduler rule to run on all the nodes in a cluster, you can also enable it to run at a startup.
Job Scheduler management
Create job scheduler rules in Dev Studio. Use the Jobs landing page in Admin Studio to trace and override job scheduler rules in your application. To create and manage job scheduler rules, make sure you have the pzJobSchedulerAdministrator privilege. To view the list of job schedulers in your application, make sure you have the pzJobSchedulerObserver privilege.
For more information about the Job Scheduler rule, see Use Job Scheduler and Queue Processor rules instead of agents on Pega Community.
- Node and cluster default job schedulers
Pega Platform includes job scheduler instances that persist system state and that clean obsolete data for a node and for a cluster.
- Creating a job scheduler rule
To perform tasks and jobs that are configured to run on a periodic basis, such as bulk processing or system cleanup jobs, create a job scheduler rule.
- Configuring the Performance tool for job scheduler rules
Configure the Performance tool to manage aggregating statistics for job scheduler rules by modifying the prconfig.xml file.
- Changing a job scheduler rule state
You can change the state of a job scheduler rule to disabled from the Jobs landing page in Admin Studio when the rule causes issues. For example, when the rule does not resolve an activity that is scheduled. When all issues are addressed, you can enable the job scheduler rule.