- Issue created by @swirt
- πΊπΈUnited States swirt Florida
Crediting @capysara for finding this and mentioning it in Slack.
- πΊπΈUnited States swirt Florida
Released as 1.0.12 β
Thank you capysara for reporting this.
The optional method canBatchRun() is called within run(). Due to the nature of batches, run() is called for every item in the batch, which is too often. It should only be evaluated at the start of the run. The rest of the times, it should not be called.
canBatchRun should only be called on the first iteration which can be detected by $sandbox['current'] ==0.
Active
1.0
Code
Crediting @capysara for finding this and mentioning it in Slack.
Released as 1.0.12 β
Thank you capysara for reporting this.