fix active_tasks for recurring tasks with no expiry