Skip to content

Provide operation status to Python callers #164

@flit

Description

@flit

The Python API must return some indication of whether the requested operation succeeded, partially succeeded, or failed. Individual APIs may handle status differently.

The most difficult API is cache_descriptors(), as this very frequently encounters errors attempting to download one or more PDSCs. Similarly, it is expected to always encounter parse issues (resulting in warnings logs from the Rust code). Perhaps this is best handled with callbacks for different results.

The download_pack_list() API is easier, but can still result in partial success. Thus, a list of successfully downloaded packs should be returned.

This is required to resolve pyocd/pyOCD#1130.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions