Skip to content

Handle timeout#9

Open
SolomonShorser-OICR wants to merge 4 commits intodevelopfrom
handle-timeout
Open

Handle timeout#9
SolomonShorser-OICR wants to merge 4 commits intodevelopfrom
handle-timeout

Conversation

@SolomonShorser-OICR
Copy link
Collaborator

Handle timeouts from UniProt.

// Tab-separate UniProt accession ID and its associated gene name, and then store these in the Set that will be returned.
uniprotAccessionsToGeneNames.add(geneObject.getAccession().toString() + "\t" + geneComponent.getGeneName().toString() + "\n");
QueryResult<UniProtComponent<Gene>> uniprotEntries = null;
while (currentAttemptNum < MAX_NUM_ATTEMPTS && uniprotEntries == null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps after this loop if uniprotEntries is still null (because the maximum number of attempts is gone past), a logger error to indicate that the maximum number of attempts were surpassed and no entries were retrieved (in addition to the log for an error during retrieval).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants