Skip to content

Commit 1713373

Browse files
modified hubmap_translator to coincide with fixes in the jobq class, removing potential es conflicts and handling a 500 error when a searched job isn't in the queue
1 parent 83ed9cf commit 1713373

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/hubmap_translator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import re
99
import sys
1010
import time
11+
from redis import Redis, ConnectionError, RedisError
1112
from yaml import safe_load, YAMLError
1213
from http.client import HTTPException
1314
from enum import Enum
@@ -800,7 +801,10 @@ def enqueue_reindex(self, entity_id, reindex_queue, priority):
800801
)
801802
logger.info(f"Finished executing translate() on {entity['entity_type']} of uuid: {entity_id}")
802803
return job_id
803-
804+
except ValueError as e:
805+
raise ValueError(e)
806+
except RedisError as e:
807+
raise RedisError(e)
804808
except Exception:
805809
msg = "Exception during executing translate()"
806810
logger.exception(msg)

src/search-adaptor

0 commit comments

Comments
 (0)