canBatchRun is called too often

Created on 2 April 2025, 4 days ago

Problem/Motivation

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.

Proposed resolution

canBatchRun should only be called on the first iteration which can be detected by $sandbox['current'] ==0.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024