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
luckymeluckyme 

Poll: Apex batch: should finish() be always called?

Currently the finish() method is not called if the query returns no records. I think this is wrong. I think finish() should always be called regardless whether the query returns any records or not. What do you think?
ErikOSnet0ErikOSnet0
Thumbs up
TehNrdTehNrd
Makes sense but I would take this discussion to the Ideas exchange.