🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@puddly
Copy link
Collaborator

@puddly puddly commented Feb 26, 2025

For Home Assistant backups to be safe, we should write lock the database during pre_backup and unlock it during post_backup. This will effectively queue all zigpy database writes for many minutes but we don't rely on the database to hold data at runtime, just to act as a store.

home-assistant/core#138544

@codecov
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 99.38%. Comparing base (4a3c058) to head (a028b85).

Files with missing lines Patch % Lines
zigpy/appdb.py 30.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1558      +/-   ##
==========================================
- Coverage   99.44%   99.38%   -0.07%     
==========================================
  Files          58       58              
  Lines       11317    11327      +10     
==========================================
+ Hits        11254    11257       +3     
- Misses         63       70       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pipiche38
Copy link
Contributor

is there a risk that on bellows implementation, we come to a Timeout because the backup will last more than 5 seconds ?

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.

2 participants