You need to sign in to do that
Don't have an account?
Sneha1991
Schedule batch class every hour from 6AM to 6PM.
I have to schedule a batch class every hour from 6AM to 6PM. Currently the batch executes every hour but now it has to be restricted i.e. 6AM-6PM. How can it be achieved?
Try the below CRON expression to schedule your batch class to run every hour from 6AM to 6PM.
I hope you have the scheduler Apex class for Batch.
Thanks,
Maharajan.C
It shows next response at 25/08/2021 18:00...which should not run at 6PM.
I think If I schedule at daily 6AM once daily and then within batch-in finish method can reschedule for every hour run till 6pm ( if current time is not 6pm). Next batch wont be scheduled if current time is 6PM.
Thanks,
Maharajan.C