redkyn / assigner

:black_nib: Automatically assign programming homework to students on GitLab.
MIT License
27 stars 6 forks source link

Retry with backoff for Gitlab API and git operations #127

Closed LinuxMercedes closed 4 years ago

LinuxMercedes commented 6 years ago

It seems that Gitlab can sometimes fall over under a barrage of requests. We've not had much luck getting Gitlab to be more reliable, so we should work around that in Assigner by retrying operations if they fail.

BehindTheBrain commented 6 years ago

For someone who had this issue with assigner (but tested timeouts in custom git-python scripts rather than assigner), 1.5 to 2.5 seconds fixed delay seems to work most of the time for avoidance.