Rename pendingTasks to processingTasks in stats