With the l10n_server suite I want to package releases on every cron run but currently it is not possible as the packaging is done with batch_set() and batch_process(). The later takes a redirect parameter which causes an error when cron is run from outside the interface i.e. via drush or through crontab.

Is it somehow possible to use batch_set() and batch_process() in cron or is there any equivalent methods I do not know of.

Thanks.

Comments

blacklabel_tom’s picture

I wouldn't recommend using batch jobs in the cron, you could have a look at the queue API (http://api.drupal.org/api/drupal/modules!system!system.queue.inc/group/queue/7) if you need to do a lot of processing per cron run.

I'm not aware of the l10n_server suite, could you describe what you are trying to do in a bit more detail please?

Cheers

Tom