Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dheeraj CTM 625 #13

Open
wants to merge 13 commits into
base: qa-deploy-pmatch
Choose a base branch
from
2 changes: 1 addition & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WORKDIR /matchminerAPI

# add github host to known hosts since it's private repo
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
RUN --mount=type=ssh pip install git+ssh://[email protected]/pughlab/pmatchengine-pugh-lab.git
RUN --mount=type=ssh pip install git+ssh://[email protected]/pughlab/pmatchengine-pugh-lab.git@mickey-CTM605-add-query

RUN pip install -r requirements.txt

Expand Down
5 changes: 4 additions & 1 deletion matchminer/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,10 @@ def default_temporary():
'ms_status': {'type': 'string', 'nullable': True},
'trial_step_number': {'type': 'string', 'nullable': True},
'trial_arm_number': {'type': 'string', 'nullable': True},
'match_type': {'type': 'string', 'nullable': True}
'match_type': {'type': 'string', 'nullable': True},
'patient_match_values': {'type': 'string', 'nullable': True},
'oncotree_primary_diagnosis_match_value': {'type':'string', 'nullable': True}
'query': {'type': 'json', 'nullable': True},
}

prioritizer_trial_match_schema = {
Expand Down
4 changes: 1 addition & 3 deletions matchminer/message/rabbitmq_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,11 @@ def process_job(self, ch, method, properties, body):
if 'user_id' in json_object:
user_id = json_object['user_id']
trial_internal_ids = json_object['trial_internal_ids']
print("Received job:", trial_internal_ids)
logging.info(f"Received job: {trial_internal_ids}")
print("running job")
try:
run_ctims_matchengine_job(trial_internal_ids)
except Exception as e:
error_msg = f"Error running job for trial internal ids {trial_internal_ids}: {str(e)}"
error_msg = f"Error running job for trial internal ids {trial_internal_ids}: {repr(e)}"
py_error_dict = {
"user_id": user_id,
"trial_internal_ids": trial_internal_ids,
Expand Down