Skip to content

Commit

Permalink
Merge pull request #86 from UMCUGenetics/hotfix/v1.10.1
Browse files Browse the repository at this point in the history
Hotfix/v1.10.1
  • Loading branch information
rernst authored Jul 2, 2024
2 parents 60c4bf0 + ce8e355 commit e580602
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion clarity_epp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse

import genologics.lims
from tenacity import Retrying, RetryError, stop_after_attempt, wait_fixed

import clarity_epp.upload
import clarity_epp.export
Expand All @@ -13,10 +14,17 @@

import config

# Setup lims connection
# Setup lims connection and try connection twice
lims = genologics.lims.Lims(config.baseuri, config.username, config.password)
genologics.lims.TIMEOUT = config.api_timeout

try:
for lims_connection_attempt in Retrying(stop=stop_after_attempt(2), wait=wait_fixed(1)):
with lims_connection_attempt:
lims.check_version()
except RetryError:
raise Exception('Could not connect to Clarity LIMS.')


# Export Functions
def export_bioanalyzer(args):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ argparse==1.4.0
xmltodict==0.12.0
pytest==7.0.1
pytest-mock==3.6.1
tenacity==8.2.2

0 comments on commit e580602

Please sign in to comment.