Beans will keep growing & flowering. (Getting a bean needs a flower.). Unless they stop producing flowers, you shouldn't pull them up. Various varieties have unique lifespans. Keep picking the beans regularly as drying of the beans on the vine will lead to decreased flowering and ultimately fewer beans being produced. Therefore, to promote their regrowth, make sure to pick them regularly.