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. Jeff -- Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 ayendesigns.com <http://ayendesigns.com> IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns Ayen Designs is a tradename of the computer services division of
Maybe I can get this one right. Total is the count of $batch['operations']. Joe 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.
Jeff
-- <ayenlogo.jpeg>Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 ayendesigns.com IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns
Ayen Designs is a tradename of the computer services division of <acmelogo.jpeg>
On 6/10/2010 12:35 PM, Joe Pletcher wrote:
Maybe I can get this one right. Total is the count of $batch['operations'].
Joe
:-) So now I need to get it right on my end. If I have a $list of 200 nodes, how do I get batch's progress message to compare the number of items being processed (the 200 nodes, which it is counting to), to that same number, instead of 1?
Oh, never mind. The answer is to not use @total in the progress message. Doh! Coffee...
participants (2)
-
Jeff Greenberg -
Joe Pletcher