KPHippe / ot2_driver

Driver repo for the OT2 drivers
MIT License
0 stars 0 forks source link

Implementing retries for when a request fails #10

Open KPHippe opened 2 years ago

KPHippe commented 2 years ago

The current code assumes each request is going to complete, and driver will break if response is not exactly what is expected.

This can cause issues when the ot2 is finishing a protocol when we queue the next one.

Two solutions:

  1. Implement something like this and keep the requests library as main http interface
  2. Re-implement using urllib3, which allows us to innately use the retry interface