bolting
verb1. Of a vegetable crop: to send up a flower stalk and set seed before the part you wanted is ready to harvest. The Royal Horticultural Society describes crops that run prematurely to seed, usually becoming unusable: salad leaves can turn bitter and root crops fail to swell. It shows only as the crop nears maturity, but the RHS says it is initiated much earlier. Lettuce, spinach and some radishes are annuals that flower in their first year anyway; onions, carrots and beetroot are biennials that normally wait for the second.
2. Loosely: any crop going to seed ahead of schedule, whatever the cause. Wiktionary defines the botanical verb as producing flower stalks and flowers or seeds quickly or prematurely, with lettuce, spinach, garlic and onion as its examples, and notes that the noun bolt can also name the stalk or scape that forms.