Depends on the Gate Agent
Sometimes they clear the upgrades 45 minutes before departure; sometimes as little as 10 minutes before departure. Since ticket sales for a flight are cut off at least 30 minutes in advance, one would think that 30 minutes would be the norm. In my experience, they clear upgrades before they start boarding the F cabin 8 out of 10 times.