When stored properly in the refrigerator in an airtight container like a mason jar, this fruit compote can last up to a week. However, if you notice any signs of mold, a bad smell, or changes in color and texture, it's best to discard it.