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
moverdorfmoverdorf 

Check To See If Scheduled Job Is Running....

I have a scheduled Apex Batch Job that runs every hour. Is there any way to check using Apex code to see if the job is running?

Thanks.
kevin lamkevin lam
Have you tried querying the CronTrigger object?
moverdorfmoverdorf
No, can you give me a coding example of how to do this? Thanks!