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

Batch Apex issue

I am using Batch Apex and found the following behavior: if execute() method is never called (the query returns no records), the finish() method is not called at all. I think this is wrong. The finish() method should always be called. What do you guys think?
I agree.  I need the finish method to be called, even if no records are processed