Skip to content

Marking backups as "in progress" or "finished" #49

@abbbi

Description

@abbbi

While working on the sync feature #48 i noticed that for sync the syncjob checks by identifying if an backup is active by using the "Size" flag of an snapshot:

       Ok(snapshot_list
            .into_iter()
            .filter_map(|item: SnapshotListItem| {
                let snapshot = item.backup;
                // in-progress backups can't be synced                                                                                  
                if item.size.is_none() {
                    task_log!(
                        worker,
                        "skipping snapshot {} - in-progress backup",

while we can "fake" this response for the sync to work, the current implementation has no real way to determine if an
backup is still active.

I think we could either use an "active" flag which is added as the backup starts and cleared as it is finished?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions