+ Start a Discussion
yuvrajindiayuvrajindia 

Cronkit for cron job is not working in salesforce10

My batch run is going to late every time any one help me who use this cron job application.

or any ther solution i want to run code every 1 hour.

Batch schedule has only 10 limit so i can't use this.

Thanks in advance.
Bhup

Pradeep_NavatarPradeep_Navatar

Salesforce.com only adds the process to the queue at the scheduled time. Actual execution may be delayed based on service availability. So the actual run time may be not same as the selected time.

ShwetaSShwetaS

Hi,

You can try the following:

scheduledClass obj = new scheduledClass ();   /////   This is the class that is required to be scheduled
String sch = '0 0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * ?';  //////  Expression string
system.schedule('Job Name', sch, obj);

Type the above written code in System Log and execute it. This will schedule the class for every hour of every day.

For futher reference goto
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 

Shweta
Salesforce Developer Support

If my answer solved your question, please mark it solved so I can help as many community members as possible!