Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide operation status to Python callers #164

Open
flit opened this issue Apr 3, 2021 · 0 comments
Open

Provide operation status to Python callers #164

flit opened this issue Apr 3, 2021 · 0 comments

Comments

@flit
Copy link
Member

flit commented Apr 3, 2021

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.

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

No branches or pull requests

1 participant