Open e-dreyer opened 1 year ago
As proposed in #6, a data storage system would help a lot with systems like this. Because pending notifications should persist through a restart or crash. How to implement such a storage system is the question.
Even by implementing some caching
system, would require a persistent store
. Doing so, would complicate the Docker
setup. Ideally we want the user to be able to completely define their own Docker
setup and not require extra containers
or images
such as Redis
.
Problem
Currently
MastoBot
implements a wrapper anddecorator
function which allows for the handling of exceptions in most functions making API calls throughMastodon.py
. This however is not the best solution. Exceptions are still able to slip through and there is actually no handling of exceptions and they are rather logged.It should be investigated how a queue system for API calls can be created and operations then postponed until a connection error or rate limiting possibly sort itself out.
Related issues
3
Current solution