function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gopal Das 13Gopal Das 13 

apex batch scheduler not working

We have one batch class, and want to schedule at every hour, every day.
Below statement has been written inside Schedulable class
System.schedule('Hourly', '0 0 * * * ?', new XXX() );

It was run for 4 times after that it was stopped.

How can I schedule? In the log it is not displaying -
Administration Setup -> Monitoring -> Apex Jobs
Prafull G.Prafull G.
Can you see this in
Administration Setup -> Monitoring -> Jobs -> Scheduled Jobs
Gopal Das 13Gopal Das 13
@praful G, No, it's not showing in 'Scheduled Jobs' also.
Prafull G.Prafull G.
hmm. You may wanna schedule it again.
In mentioned sample, given that XXX your schedulable class, you can schedule is usign "Schedule Apex" OR using cron expression.
Have a look at this (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm)in case you need more info.