Batch job not running callback I am trying to run a batch job of importing items from a csv file. When I click submit on my form and my batch process starts, I do get a batch process bar which says its progressing, but it never calls my callback function or my finished function. I've done a dpm() of th $batch array before I run it, and it seems to be in order. What am I missing?

$count = 1;
  while($count &lt;= count($csv) ) {
    $operations[] = array('ons_institutional_subscriber_importer_import', array(array_slice($csv, $count, $count + 10)));
    $count = $count + 10;
  }
  $batch = array(
    'title' =&gt; t('Importing Institutional Subscribers'),
    'operations' =&gt; $operations,
    'finished' =&gt; 'ons_institutional_subscriber_importer_finished',
    'init_message' =&gt; t('Import is starting.'),
    'progress_message' =&gt; t('Processed @current out of @total.'),
    'error_message' =&gt; t('Import has encountered an error.'),
  );
  dpm($batch);
  batch_set($batch);
  batch_process();


and my callback functions

function ons_institutional_subscriber_importer_import($csv, &amp;$context) {
  dpm('hello');
  //more code here...
}
function ons_institutional_subscriber_importer_finished($success, $results, $operations) {
  if ($success) {
    $message = format_plural(count($results), 'One post processed.', '@count posts processed.');
  }
  else {
    $message = t('Finished with an error.');
  }
  drupal_set_message($message);
}
This Problem happens when we put our file in different folder like as includes/form_test.inc.In this scenario batch function can't call.So to handle this we put 'file' => 'path_to_file_containing_myfunctions' in our submit function.I wish this code will help you in understanding.you are missing 'file' in your batch array.

$batch = array(
  'title' =&gt; t('Custom File uploader'),
  'operations' =&gt; array(
    array('test_feeds_import_form_batch', array($uri)),
  ),
  'progress_message' =&gt; t('Uploading Multiple Products...'),
  'error_message' =&gt; t('Error!'),
  'finished' =&gt; 'test_feeds_import_form_batch_finish',
  'file' =&gt; drupal_get_path('module', 'test') . '/includes/test_form.inc',
);

batch_set($batch);
batch_process('admin/import-data'); //Work like as drupal goto