mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Use an sqlite connection that has ResetSession() and IsValid() implemented. ## Why? If these methods are not implemented, sql library will close the connection when the context is cancelled during a transaction. We will lose the database if this happens. IsValid() will always return true in this case. We should always have a valid database connection, otherwise we would have already lost the database. Similarly ResetSession() does nothing. ## How did you test it? Tried to reproduce the issue by cancelling a transaction context. ## Potential risks None ## Documentation ## Is hotfix candidate? No