mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-27 04:49:49 -07:00
feat(sync-ui): default auto-sync interval 60 minutes
This commit is contained in:
@@ -119,7 +119,7 @@ Unfinished sessions (a crash mid-playback) are skipped until the app finalizes t
|
|||||||
- **Activity** — live stage-by-stage progress, remote output, and a merge summary (sessions, words, kanji, rollups) when a run finishes. Runs can be cancelled, and guard failures offer a one-click `--force` retry.
|
- **Activity** — live stage-by-stage progress, remote output, and a merge summary (sessions, words, kanji, rollups) when a run finishes. Runs can be cancelled, and guard failures offer a one-click `--force` retry.
|
||||||
- **Snapshots** — create manual database snapshots (stored in `/tmp/subminer-db-snapshots/` by default), merge a snapshot file into the local database, or reveal/delete existing snapshots.
|
- **Snapshots** — create manual database snapshots (stored in `/tmp/subminer-db-snapshots/` by default), merge a snapshot file into the local database, or reveal/delete existing snapshots.
|
||||||
|
|
||||||
Hosts with **Auto-sync** enabled are synced in the background on a configurable interval (default every 30 minutes) whenever no mpv session or stats server is using the database; results surface as overlay notifications. Host bookkeeping lives in `<config dir>/sync-hosts.json`.
|
Hosts with **Auto-sync** enabled are synced in the background on a configurable interval (default every 60 minutes) whenever no mpv session or stats server is using the database; results surface as overlay notifications. Host bookkeeping lives in `<config dir>/sync-hosts.json`.
|
||||||
|
|
||||||
## Common Commands
|
## Common Commands
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ function withTempDir(fn: (dir: string) => void): void {
|
|||||||
test('createDefaultSyncHostsState returns empty v1 state', () => {
|
test('createDefaultSyncHostsState returns empty v1 state', () => {
|
||||||
assert.deepEqual(createDefaultSyncHostsState(), {
|
assert.deepEqual(createDefaultSyncHostsState(), {
|
||||||
version: 1,
|
version: 1,
|
||||||
autoSyncIntervalMinutes: 30,
|
autoSyncIntervalMinutes: 60,
|
||||||
hosts: [],
|
hosts: [],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export interface SyncResultUpdate {
|
|||||||
detail: string | null;
|
detail: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEFAULT_AUTO_SYNC_INTERVAL_MINUTES = 30;
|
const DEFAULT_AUTO_SYNC_INTERVAL_MINUTES = 60;
|
||||||
|
|
||||||
export function createDefaultSyncHostsState(): SyncHostsState {
|
export function createDefaultSyncHostsState(): SyncHostsState {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user