+ Start a Discussion
nathanael.mnathanael.m 

Limits.getScriptStatements() from with batch process

The Limits.getScriptStatements() method is always returning 0 within a batch process.

I'm assuming this isn't by design?

 

Thanks

Shashikant SharmaShashikant Sharma

Yes Script statement limits do not get counted with in a batch in any of these method of batch

start , execute or finish call . 

nathanael.mnathanael.m

Even though the limit exist in a batch process execution context? Doesn't make much sense that you can 'sometimes' check your status against the limit during execution...