Do not delete tasks while iterating in queue.truncate()