I apologize for not being clear. This isn't the batch processing function (with the $context variable). It's a function called from the batch processing function. That is, the processing function grabs the next batch of 40 'project' nodes from the DB, then calls this function on each of them in turn.

Brian

On 10-07-23 10:18 AM, Justin Ellison wrote:
Disregard my earlier email then, sorry.

Your test case isn't doing anything with the $context variable.  I know it's best practice to use that array to tell batch API how far along it is -- I've never not done that, maybe that's part of the problem?  If you make your test case look more like the batch api from the examples module, does that still repeat the same error?

Justin

On Fri, Jul 23, 2010 at 9:12 AM, Brian Vuyk <[email protected]> wrote:
Thanks for the suggestion.

Unfortunately, that did not affect the behaviour. I did a few test runs with it, the first 2 returned proper results, the third run had all the problematic node_load()s again.

It had my hopes up momentarily, though!

Brian

Reply via email to