How long did you pump for?

For those of you who have had actual medically diagnosed shortages of breast milk and have pumped in addition to giving mainly formula, how long did you continue to pump for?

I only get up to 1 ounce at a time, baby is nearly 4 months

(Breastfeeding is mostly not an option at all because I work and baby mostly refuses breast when there is time)