[development] Chapter 2 in Batch issues - @total
pletcher at longsight.com
Thu Jun 10 16:35:37 UTC 2010
Maybe I can get this one right. Total is the count of $batch['operations'].
On Jun 10, 2010, at 12:32 PM, Jeff Greenberg wrote:
> Now that the batch operation is firing, I notice an issue with the progress message. I've been looking through the code, but am defeated so far by the levels of abstraction. Before resorting to stepping through in debug, it makes sense to just ask!
> I'm processing 200 records. The progress message (@current out of @total) gives me 1 out of 1, 2 out of 1, 3 out of 1, etc.
> $batch['sandbox']['max'] is set to the number of records being processed, though I don't know whether it's used or not. I can't seem to find in the docs or the code what is driving the @total value. I do see that it comes from $current_set['total'], but not where that comes from.
> <ayenlogo.jpeg>Ayen Designs
> 388 Bullsboro Drive #105 · Newnan, Georgia 30263
> IM (Yahoo) baalwww (MSN) baalwww at yahoo.com
> Skype: ayendesigns
> Ayen Designs is a tradename of the computer services division of <acmelogo.jpeg>
More information about the development