Cache Throttles
BrianMitchL opened this issue · comments
Brian Mitchell commented
If weatherBot is stopped/crashes and then restarted in the middle of a throttled special event, a tweet for the same event will be sent. Saving and loading throttles and any cache information from a file on every main loop would solve this problem.
I think the pickle
library would be a good fit as this is data that users should not interact with. Datetimes are how weatherBot keeps track of throttles. Being able to work with datetimes directly instead of using a conversation between other data types/structures would make for cleaner and more direct code.