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

Persist begun transactions in db #137

Open
LucaBernstein opened this issue May 16, 2022 · 2 comments
Open

Persist begun transactions in db #137

LucaBernstein opened this issue May 16, 2022 · 2 comments
Labels
Bot enhancement New feature or request

Comments

@LucaBernstein
Copy link
Owner

LucaBernstein commented May 16, 2022

Triggers:

  • tx open for longer than n hours (checked by cron)
  • admin command /admin_persist_all_open yes

Actions:

  • All tx currently opened are persisted in db
  • user is notified, that currently running tx has been canceled. furthermore: If you want to continue where you left off, please type '/restore 20220124_<some_generated_name_or_details_or_none_if_unique>
  • add callback button with restore 2021.....
  • remove transaction from currently running

Implementation

  • as described above
  • test for caching, incl. generated sql, check that it works, also check sql and inject the same (same variable) into a test testing the other direction of restoring.

Bonus


  • Still use app cache
  • If user enters tx input and there is no tx found locally, check db
  • For each tx input (async) write cache state to db (and locally)
  • Delete committed tx from db
@LucaBernstein
Copy link
Owner Author

Dockerfile: depend bot service on db to help Docker in ordering app restarts

@LucaBernstein
Copy link
Owner Author

reduce cache time, store and retrieve from db instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant