Retry connecting to github because sometimes the connection is refused.#32
Retry connecting to github because sometimes the connection is refused.#32sclements wants to merge 1 commit intoIQAndreas:masterfrom
Conversation
|
I'm hesitant to add this feature. There is no delay between requests, so if I'm thinking correctly, the script will continue to send out request after request as many times as it can each second. I'd rather try to figure out why the request failed. And if there is no way to fix that failed request, perhaps the progress of the script can be stored in a "temporary file" and resumed once GitHub starts accepting requests again. |
|
As for the why, how many issues were you importing at once? The GitHub API has a maximum number of requests per day
|
I added this code because when I tried to migrate issues the script stopped running after github refused a connection. Only a third of the issues were migrated and it wasn't going to be easy to migrate only the remaining issues. This change makes the script retry when github refuses the connection.