Spices storage conditions
The flavor and aroma of spices deteriorates over time, particularly when exposed to air and light.  How much time? ...hard to say...but buying whole spices and grinding them yourself when needed lengthens shelf life...as does storing them in airtight containers and in a dark, cool place.  Health and safety is not a concern here.  Flavor and aroma is. We are talking shelf life in terms of months, not years.  So, your containers (clearly not airtight) will be fine, but the quicker you cycle through your spice inventory, the better.