Open aliwojo opened 1 year ago
FYI this retry logic was added in this PR: #686
Nice! We'll want to keep retries, but just be a bit more selective about when they happen. I'm aware that that might be difficult, as we'll need to figure out what errors are worth retrying. We should probably just retry connection errors and the GraphQL timeout error (which I can find an example of next week).
We have gotten complaints from users that the
generate-mannequins-csv
command takes to long to raise an error if an invalid org name is provided for--github-target-org
. Based on the verbose logs, it seems we are retrying the query to find the organization 5 times before raising the error. @timrogers has suggested that retries be skipped for "NOT_FOUND" errors so the command can fail fast.Verbose logs for context: