Some checks failed
CI - Multi-Platform Native / Build iOS (RSSuper) (push) Has been cancelled
CI - Multi-Platform Native / Build macOS (push) Has been cancelled
CI - Multi-Platform Native / Build Android (push) Has been cancelled
CI - Multi-Platform Native / Build Linux (push) Has been cancelled
CI - Multi-Platform Native / Build Summary (push) Has been cancelled
39 lines
902 B
Markdown
39 lines
902 B
Markdown
# 20. Implement Linux background sync service
|
|
|
|
meta:
|
|
id: native-business-logic-migration-20
|
|
feature: native-business-logic-migration
|
|
priority: P1
|
|
depends_on: [native-business-logic-migration-17]
|
|
tags: [implementation, linux, background]
|
|
|
|
objective:
|
|
- Implement background feed sync using GIO Timeout or systemd timer
|
|
|
|
deliverables:
|
|
- background-sync.vala
|
|
- sync-scheduler.vala
|
|
- systemd service file
|
|
- systemd timer file
|
|
- Desktop entry with autostart
|
|
|
|
tests:
|
|
- Unit: Test scheduler configuration
|
|
- Unit: Test timeout handling
|
|
- Integration: Test background execution
|
|
|
|
acceptance_criteria:
|
|
- Sync runs on schedule
|
|
- Battery-efficient (only when active)
|
|
- Proper cleanup on app close
|
|
- State persisted between runs
|
|
|
|
validation:
|
|
- Test with systemd-timer list
|
|
- Verify with journalctl
|
|
|
|
notes:
|
|
- Use GTimeout for in-app scheduling
|
|
- Use systemd timer for system-level
|
|
- Respect power management
|