Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Nov 12, 2024
1 parent fe9cd6e commit bc93f38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cts_calcs
14 changes: 7 additions & 7 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
def cts_task(request_post):

task_obj = CTSTasks()
try:
task_obj.initiate_requests_parsing(request_post)
except Exception as e:
logging.warning("Error calling task: {}".format(e))
# if db_handler.is_connected:
# db_handler.mongodb_conn.close() # closes mongodb client connection
task_obj.build_error_obj(request_post, 'cannot reach calculator', e) # generic error
# try:
task_obj.initiate_requests_parsing(request_post)
# except Exception as e:
# logging.warning("Error calling task: {}".format(e))
# # if db_handler.is_connected:
# # db_handler.mongodb_conn.close() # closes mongodb client connection
# task_obj.build_error_obj(request_post, 'cannot reach calculator', e) # generic error

@app.task
def removeUserJobsFromQueue(sessionid):
Expand Down

0 comments on commit bc93f38

Please sign in to comment.