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

Retry request after API error #23

Closed
bmesuere opened this issue Aug 14, 2019 · 1 comment
Closed

Retry request after API error #23

bmesuere opened this issue Aug 14, 2019 · 1 comment

Comments

@bmesuere
Copy link
Member

See https://github.ugent.be/unipept/unipept-cli/issues/13#issuecomment-16365 for the question

We could use queue_front to implement this. As @bmesuere said, hydra.run is a blocking call but in the response handlers, new items can still get queued.

Original issue by @silox on Tue Apr 21 2015 at 10:39.
Closed by @bmesuere on Wed Jul 01 2015 at 15:04.

@bmesuere
Copy link
Member Author

Some comments from @tvwillem in unipept/unipept#333:

I'll briefly explain what I do now:
if the request times out -> a message is printed to stderr. We continue with the rest of the input.
if the request produces an error -> the error is saved in ~/.unipept (with accompanying message to stderr). We continue with the rest of the input.

What I think should be done:
Log the entire input for with requests failed in a convenient file so it can be easily resumed.

Original comment by @bmesuere on Wed May 20 2015 at 18:31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant