i got an array of items. On each item, a process is executed wich manipulates data, write things to the database,...
When i execute my drush script (ex: drush mycommand) i start a batch process:
$batch = dms_notification_mail_sendout_batch($nid);
batch_set($batch);
$batch =& batch_get();
$batch['progressive'] = FALSE;
drush_backend_batch_process();
Now i was wondering why i would use a batch process here. Does it have any advantages? Because you with drush you don't have to consider PHP timeouts.
In short: If you don't have to consider with PHP timeouts, is batch process still usefull?
Thx!