Lowering memory usage on task batches
Ok, update..

The problem of my high memory usage was caused by (I think the logging of) devmode.. When I set devmode to false the moment that hit 10+gig memory before now has 100mb of memory usage... 

Resetting memory on the different tasks that get initiated in the same function or as subtasks is not possible I guess?