ActivityWatch / ActivityWatch/aw-server-rust

Major data loss -- server doesn't appear to write data to disk properly

Đang mở
#397 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
315
Fork
96
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
14

Mô tả

- [x] I am on the [latest](https://github.com/ActivityWatch/activitywatch/releases/latest) ActivityWatch version.
- [x] I have searched the issues of this repo and believe that this is not a duplicate.

- **OS name and version**: Windows 11, 22H2 (22621.1848)
- **ActivityWatch version**: 0.12.2

## Describe the bug
After a power outage at night, while the computer was in sleep/standby, all data for the past few days was lost. I started using ActivityWatch on June 10th and now have data for the these dates: 10, 11, 12, 13, 18.

## To Reproduce
1. Gather some data
2. Kill aw-server-rust.exe
3. Restart aw-server-rust.exe

All data gathered since the last graceful exit is lost when I do this, as mentioned above even **days** worth of data.

However, making things worse, I could reproduce this while testing, but not every time. I'm not sure what the difference between tries is. I'm also not sure if data is written properly but is corrupted, or simply not written at all.

## Expected behavior
Data should be written to disk regularly, perhaps every 5 minutes or so, and persist even if power is lost/the server crashes etc.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.