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

Feature requests to support resuming export #12

Open
stinney opened this issue Nov 28, 2023 · 3 comments
Open

Feature requests to support resuming export #12

stinney opened this issue Nov 28, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@stinney
Copy link

stinney commented Nov 28, 2023

It would be useful if the export API supported two features:

  1. a request for the number of records in the data
  2. an option to export starting from a given record number

Then it would be possible to have a shell script check the received data and retry until it had retrieved all the records.

@larsgw larsgw added the enhancement New feature or request label Nov 28, 2023
@stinney
Copy link
Author

stinney commented Nov 28, 2023

For 'inscriptions' export, the number of records should be the number of ATF transliterations, and the start-from would be the nth ATF transliteration.

@larsgw
Copy link
Collaborator

larsgw commented Sep 30, 2024

I've now implemented a per-page automatic retry (where it waits 500 ms to try again after a 504 Gateway Timeout, 3 times), which should help in a lot of cases.

@larsgw
Copy link
Collaborator

larsgw commented Sep 30, 2024

For 'inscriptions' export, the number of records should be the number of ATF transliterations, and the start-from would be the nth ATF transliteration.

This can be a bit difficult — if you export ATF with --entities artifacts --format atf the number of ATF transliterations will not line up with the number of artifacts records.

For linked data, identifying the number of downloaded records itself could be pretty difficult. Maybe a temporary file with the current state would be simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants