That&#39;s clear, and it makes sense. Thanks Yves!<div><br></div><div>Any pointers as to how I could have large chunks of data processed on cron in another way?<br clear="all"><div><br></div><div><br></div><div>Sven</div><br>


<br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 1:25 PM, Yves Chedemois <span dir="ltr">&lt;<a href="mailto:yched.drupal@free.fr">yched.drupal@free.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Batch API works around the PHP timeout limitation by relying on a client browser to iterate separate requests, each of which stays below the time limitation.<br>
So yes, Batch API can only be used in a UI context, which excludes cron.<br>
<br>
For the same reason, it is not recommended to fire a batch processing inside an API function, since you cannot ensure it will be executed in a safe-for-batch context.<br>
<br>
Yched<br>
<br>
Le 15/07/2010 11:01, Sven Decabooter a écrit :<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I&#39;m reading contradicting posts about running Batch API processes on cron. This is for Drupal 6 BTW.<br>
I have tried implementing a batch functionality that should be run on cron, but it doesn&#39;t seem to process the work that needs to be done.<br>
I assume this is because running the cron through a commandline command doesn&#39;t allow for javascript...<br>
<br>
So my questions:<br>
- Have I implemented Batch API incorrectly, and should it normally work also on cron?<br>
- What is the best way to run a process that would normally trigger a php script timeout? Can I use the Queue module for that?<br>
<br>
I&#39;m sure plenty of people have already tried doing this, so I&#39;m not sure why I can find little consistent information about it.<br>
<br>
Thanks for your feedback.<br>
<br>
Sven<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>