When stored in an airtight glass container in the refrigerator, pesto will last up to 1 week.