File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -676,20 +676,25 @@ def process(config):
676
676
# exit out of the loop as the query has completed
677
677
return 0
678
678
except Exception as e :
679
- # Try handle read errors from TileDB storage for azure urls
679
+ # Try to handle read errors with expired access tokens for azure urls
680
680
# e.g. GenomicsDBIteratorException exception : Error while reading from TileDB array
681
- if allow_retry and "GenomicsDB" in str (type (e )) and "TileDB" in str (e ):
681
+ # VariantQueryProcessorException : Could not open array <array> at workspace <workspace>
682
+ if allow_retry :
683
+ if os .environ .get ("GENOMICSDB_PRINT_EXCEPTION" , None ):
684
+ logging .info (f"Exception({ e } ) encountered with genomicdb query" )
682
685
# Check for the possibility of an expired access token
683
686
allow_retry = False
684
687
try :
685
688
# If the check for workspace under consideration succeeds and the workspace exists as it should,
686
689
# genomicsdb instance is functional! Probably not an expired token, so re-raise outer exception
687
690
if not gdb .workspace_exists (export_config .workspace ):
688
- logging .info (f"Retrying query with a new instance of gdb for { msg } ..." )
691
+ logging .info (f"Retrying after workspace check with a new instance of genomicsdb for { msg } ..." )
689
692
gdb = None
690
693
continue
691
694
except Exception as ex :
692
- logging .info (f"Exception({ ex } ) encountered. Retrying query with a new instance of gdb for { msg } ..." )
695
+ if os .environ .get ("GENOMICSDB_PRINT_EXCEPTION" , None ):
696
+ logging .info (f"Exception({ ex } ) encountered with genomicdb workspace check" )
697
+ logging .info (f"Retrying query with a new instance of genomicsdb for { msg } ..." )
693
698
gdb = None
694
699
continue
695
700
logging .critical (f"Unexpected exception while processing { msg } : { e } " )
You can’t perform that action at this time.
0 commit comments