+ Start a Discussion
World IndiaWorld India 

how many times apex class scheduled in one hour

Vijay NagarathinamVijay Nagarathinam
Hi,

There is no limit to schedule, you can schedule for every 5 mins or 2 mins based on the requirement you can schedule. Below I have added sample snippet for schedule a class.
 
ProcessAccs pa= new ProcessAccs();
String cronStr = '0 0,30 * * * *';
System.schedule('Process Accs Job', cronStr, pa);

If you run the above code in the console it will execute every 30 mins.

Let me know if you have any question regarding this.

Thanks,
Vijay.