Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support returning and resuming partial results
Add a parameter `keep_failed` to `Dials.list_all()`, specifying whether to return the paginated partial results when an HTTP request fails. Add a parameter `resume_from` to `Dials.list_all()` to accept paginated partial results and resume the fetching. Add a field `exception` to `PaginatedBaseModel` to record the exception that causes the request to fail. If applied, users would be able to write something like: ```python data = None data = dials.h1d.list_all(<filter>, keep_failed=True, resume_from=data) ``` and resume by <Up><Enter> from the terminal.
- Loading branch information