mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 20:06:22 -05:00
FileWorker: Async queue-based file synchronization system
Introduces FileWorker for background file operations with dual-queue architecture (public/private). Handles refresh, move, and rename tasks with progress tracking, job completion monitoring, and batch processing. Compares DB FileGroups to filesystem state using FileGroupDiff to detect new/modified/deleted files. Designed for memory efficiency on Raspberry Pi.
This commit is contained in:
parent
1d9b794fca
commit
173284699d
49 changed files with 4256 additions and 861 deletions
|
|
@ -1174,10 +1174,10 @@ export async function deleteFile(paths) {
|
|||
}
|
||||
|
||||
export async function fetchFilesProgress() {
|
||||
const response = await apiGet(`${API_URI}/files/refresh_progress`);
|
||||
const response = await apiGet(`${API_URI}/files/worker_status`);
|
||||
if (response.ok) {
|
||||
const json = await response.json();
|
||||
return json['progress'];
|
||||
return json['status'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue