Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Add persistence to Job Queue #15

Open
Guilherme-Vasconcelos opened this issue Jun 18, 2021 · 0 comments
Open

Add persistence to Job Queue #15

Guilherme-Vasconcelos opened this issue Jun 18, 2021 · 0 comments

Comments

@Guilherme-Vasconcelos
Copy link
Owner

Guilherme-Vasconcelos commented Jun 18, 2021

Describe your idea
Job Queue is currently lost if Aqua turns off. While this isn't a problem for reminders that are only a few minutes after, it may be a problem for reminders scheduled to hours/days later.

Extra information
Suggestion: create a dump file once at the end of the JobQueue loop using pickle:
https://docs.python.org/3/library/pickle.html

Maybe use inspect.getsource: https://stackoverflow.com/questions/12072252/cant-get-source-code-for-a-method-declared-through-exec-using-inspect-in-pyth

Alternatively, instead of each Job having a function to be executed, they could have a type instead (e.g. send_message type), which are easier to store / load.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Issues
To do
Development

No branches or pull requests

1 participant