IBM Support

New system property "mxe.crontask.runonschedule" is added

Technical Blog Post


Abstract

New system property "mxe.crontask.runonschedule" is added

Body

Have you used  the new system property "mxe.crontask.runonschedule"  ?

 

The system property mxe.crontask.runonschedule has been introduced from 7602.

We can make  missed scheduled crontasks run immediately or  not run until the next scheduled time.

In other words,  when the property is set to 0, missed scheduled cron tasks are run immediately and then at the next scheduled time. When the property is set to 1, missed scheduled cron tasks are not run until the next scheduled time.

 

For example,  there is a crontask instance for BBCron. BBCron.BBCronInstance1 is scheduled to run every 2 hours. 1:00 AM, 3:00 AM, 5:00 AM ~~

At 1:00 AM,  that crontask ran successfully.

Then, server  stopped unexpectedly at 1:30 AM and restarted at 3:30 AM.

When mxe.crontask.runonschedule = 0, BBCron. BBCron.BBCronInstance1  will run immediately once server restarts. ( 3:30 AM)

When mxe.crontask.runonschedule = 1, BBCron. BBCron.BBCronInstance1  will run at the next scheduled time (5:00 AM).

 

To  sum up, you can set mxe.crontask.runonschedule as 0 or 1  based on your business requirement.

[{"Business Unit":{"code":"BU005","label":"IoT"}, "Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":""}]

UID

ibm11131579