Skip to content

Commit

Permalink
reordering and adding timeout to appraise
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDWilliams committed Sep 25, 2024
1 parent e2b88e9 commit 999871f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tr_sys/tr_ars/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def appraise(mesg, data, agent_name,retry_counter=0):
logging.info('sending data for agent: %s to APPRAISER URL: %s' % (agent_name, APPRAISER_URL))
with tracer.start_as_current_span("get_appraisal") as span:
try:
with requests.post(APPRAISER_URL,data=json_data,headers=headers, stream=True) as r:
with requests.post(APPRAISER_URL,data=json_data,headers=headers, stream=True,timeout=600) as r:
logging.info("Appraiser being called at: "+APPRAISER_URL)
logging.info('the response for agent %s to appraiser code is: %s' % (agent_name, r.status_code))
if r.status_code==200:
Expand Down

0 comments on commit 999871f

Please sign in to comment.