Disabling cron tasks on an application server

Active cron tasks run on all application servers in a sequence. In a multi-server environment, you can disable an instance on one or more servers or server clusters. The ReorderCronTask and the PMWoGenCronTask are process-intensive. If the system server is also the corporate print server, you can disable these two cron tasks to reduce the workload of the server.

About this task

You can prohibit all or a selected set of instances from running by modifying the maximo.properties file. You can use a combination of system properties to run a cron task on a server, and exclude a particular instance of that cron task. If the mxe.crontask.dorun property is left empty, all cron tasks will run except for those specified on the mxe.crontask.donotrun property.

Procedure

  1. In the maximo_install\applications\Maximo\properties directory, open the maximo.properties file in a text editor.
  2. Navigate to the section Cron Task Manager property. Copy the line //mxe.crontask.donotrun=crontaskname.instancename and paste it in a new line under the text that you copied.
  3. In the copied line, remove the comment indicators.
  4. Replace the text crontaskname.instancename with the name and instance of the cron task that you want to disable.
    For example, to disable an instance of the reorder cron task, modify the copied line to say mxe.crontask.donotrun=ReorderCronTask.ReorderCronTask01.
  5. Optional: Copy the line //mxe.crontask.dorun=crontaskname.instancename and paste it in a new line under the text that you copied.
  6. Optional: Replace the text crontaskname.instancename with the name and instance of the cron task that you want to enable.
    If the same cron task is specified on both the mxe.crontask.dorun property and on the mxe.crontask.donotrun property, the mxe.crontask.donotrun property takes priority, and the cron task will not run.
  7. Save your changes.

What to do next

After you change the maximo.properties file, you must rebuild and redeploy the enterprise application archive file.