Skip to content

DeviceState: Align sync intervals to unix timestamp 0#208

Merged
chenxiaolong merged 1 commit into
masterfrom
aligned-time
Jul 21, 2026
Merged

DeviceState: Align sync intervals to unix timestamp 0#208
chenxiaolong merged 1 commit into
masterfrom
aligned-time

Conversation

@chenxiaolong

Copy link
Copy Markdown
Owner

This allows multiple devices running BasicSync with the same intervals configured to communicate with each other. Previously, the intervals were aligned to the app start time or last sync schedule preference change time, whichever was later.

This commit also makes the alarm receiver idempotent so we no longer need two separate alarms to handle the sync and idle intervals.

Fixes: #207

@chenxiaolong chenxiaolong self-assigned this Jul 21, 2026
This allows multiple devices running BasicSync with the same intervals
configured to communicate with each other. Previously, the intervals
were aligned to the app start time or last sync schedule preference
change time, whichever was later.

This commit also makes the alarm receiver idempotent so we no longer
need two separate alarms to handle the sync and idle intervals.

Fixes: #207

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
chenxiaolong merged commit 2d70b82 into master Jul 21, 2026
1 check passed
chenxiaolong added a commit that referenced this pull request Jul 21, 2026
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
chenxiaolong deleted the aligned-time branch July 21, 2026 04:28
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.

Feature request - sync on absolute time schedule

1 participant