Make active_tasks work properly for recurring tasks.