The pesto should last about two weeks in the refrigerator but it's unlikely it will last that long before you gobble it up.