feat: add check for broken watchers every 5 minutes #111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sometimes my watchers will die after some time which causes me to lose data. Instead of forcing a restart of the watcher, this will just allow the user to decide to restart the watcher or not. I would be okay with checking more frequently, but I think that 5 minutes is a good middle between taking lots of resources and making sure that dead watchers don't lose a lot of data.
Also, when I was trying to develop this, I realized that the base python version (3.8) is EOL now, so installing it and running pyqt6 with the original version did not work. It can't find a version of pyqt6 that fits the lock file. So this updates both the python version and the pyqt6 version. I think this is a reason why #107 failed CI.
Let me know if you have any suggestions or comments about this. I know that aw-tauri is being worked on, but losing data is pretty discouraging right now.
Related to #103
Important
Adds a periodic check for broken watchers every 5 minutes and updates Python and PyQt6 versions in
pyproject.toml
.check_module_status()
intrayicon.py
.^3.9,<3.14
inpyproject.toml
.PyQt6
andPyQt6-Qt6
to version6.8.1
inpyproject.toml
.This description was created by
for 4c44b86. It will automatically update as commits are pushed.