[development] Batch operation function not firing

Jeff Greenberg jeff at ayendesigns.com
Wed Jun 9 19:25:30 UTC 2010


Have a module function hooking batch:


   $batch = array(
     'operations' => array(
       array('mymodule_batch_task', array($var1, $var2)),
     ),

     'finished' => 'mymodule_batch_finished',
     'title' => t('batch process'),
     'init_message' => t('starting.'),
     'progress_message' => t('Processed @current out of @total.'),
     'error_message' => t('encountered an error.'),
     'file' => 'mymodule.admin.inc',
   );
   batch_set($batch);

The batch process messages appear on the screen as they should, but it 
seems that the operations function doesn't fire at all. I put a watchdog 
command before the above call, and it appears in the dblog report. I put 
a watchdog call at the beginning of mymodule_batch_task() and it doesn't 
show up, and neither does the watchdog call from the 'finished' function.


Jeff

-- 

Ayen Designs
388 Bullsboro Drive #105 · Newnan, Georgia 30263
404-271-9734
ayendesigns.com <http://ayendesigns.com>
IM (Yahoo) baalwww    (MSN) baalwww at yahoo.com
Skype: ayendesigns

Ayen Designs is a tradename of the computer services division of

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100609/da9ab1f7/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ayenlogo
Type: image/jpeg
Size: 8316 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20100609/da9ab1f7/attachment-0002.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acmelogo
Type: image/jpeg
Size: 1462 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20100609/da9ab1f7/attachment-0003.jpe 


More information about the development mailing list