Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support persisting completed tasks. #1234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hongwen000
Copy link

@hongwen000 hongwen000 commented May 31, 2022

Description

Persiste the completed tasks to a json database (based on lowdb).
The database location is in the Data directory returned by the env-paths package.
Implemented a simple caching policy to avoid keeping reading the database.

Related Issues

Fixes #645

Checklist:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you linted your code locally prior to submission?
  • Have you successfully ran app with your changes locally?

Tested

  • Persisting to db
  • Reading from db
  • Delete task from db
  • Purge all tasks

Tested
- Persisting to db
- Reading from db
- Delete task from db
@agalwood
Copy link
Owner

agalwood commented May 2, 2023

Sorry for replying to you now, your PR branch cannot be merged automatically due to conflicts, you need to re-update the dependency adaptation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

重启后“已停止”记录会清空
3 participants