File tree Expand file tree Collapse file tree 6 files changed +6
-9
lines changed
Expand file tree Collapse file tree 6 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 99from common .pyportal_common .db_handlers .db_conn_manager import (
1010 DataBaseConnectionHandler
1111)
12+ from common .pyportal_common .utils import mask_ip_address
1213from app .models .token_model import Base
1314
1415try :
221222 usermanager_app .config ["USER_MANAGEMENT_GRPC_SERVER_IP" ] + ":" +
222223 usermanager_app .config ["USER_MANAGEMENT_GRPC_SERVER_PORT" ]
223224 )
224- from common .pyportal_common .utils import mask_ip_address
225225 grpc_ip = usermanager_app .config ['USER_MANAGEMENT_GRPC_SERVER_IP' ]
226226 masked_grpc_ip = mask_ip_address (grpc_ip )
227227 user_management_logger .info (
Original file line number Diff line number Diff line change 22import os
33import sys
44from logging import Logger
5- from flask import Flask , Blueprint
5+ from flask import Flask , Blueprint , jsonify
66
77# Add parent directory to path for common imports
88sys .path .insert (0 , os .path .join (os .path .dirname (__file__ ), '../../..' ))
4040 @notification_app .route ('/health' , methods = ['GET' ])
4141 def health ():
4242 """Health check endpoint"""
43- from flask import jsonify
4443 return jsonify ({
4544 'status' : 'healthy' ,
4645 'service' : 'notification'
Original file line number Diff line number Diff line change 66It initializes the server, configures settings, and starts Kafka consumer.
77"""
88import sys
9+ import threading
910from app import (
1011 notification_app ,
1112 notification_logger ,
2829
2930 # Start Kafka consumer in background thread
3031 if kafka_consumer :
31- import threading
3232 consumer_thread = threading .Thread (
3333 target = kafka_consumer .start_consuming ,
3434 daemon = True
Original file line number Diff line number Diff line change 33import sys
44import concurrent .futures
55from logging import Logger
6- from flask import Flask , Blueprint
6+ from flask import Flask , Blueprint , jsonify
77
88# Add parent directory to path for common imports
99sys .path .insert (0 , os .path .join (os .path .dirname (__file__ ), '../../..' ))
5050 @taskprocessing_app .route ('/health' , methods = ['GET' ])
5151 def health ():
5252 """Health check endpoint"""
53- from flask import jsonify
5453 return jsonify ({
5554 'status' : 'healthy' ,
5655 'service' : 'taskprocessing'
Original file line number Diff line number Diff line change 1818from common .pyportal_common .error_handlers .internal_server_error_handler import (
1919 send_internal_server_error_to_client ,
2020)
21+ from common .pyportal_common .utils import mask_request_headers
2122
2223
2324def create_task ():
@@ -31,7 +32,6 @@ def create_task():
3132 )
3233
3334 if request .method == "POST" :
34- from common .pyportal_common .utils import mask_request_headers
3535 rec_req_headers = dict (request .headers )
3636 masked_headers = mask_request_headers (rec_req_headers )
3737 taskprocessing_logger .info (
Original file line number Diff line number Diff line change 22import os
33import sys
44from logging import Logger
5- from flask import Flask , Blueprint
5+ from flask import Flask , Blueprint , jsonify
66
77sys .path .insert (0 , os .path .join (os .path .dirname (__file__ ), '../../..' ))
88
9999 @usermanager_app .route ('/health' , methods = ['GET' ])
100100 def health ():
101101 """Health check endpoint"""
102- from flask import jsonify
103102 return jsonify ({
104103 'status' : 'healthy' ,
105104 'service' : 'usermanagement'
You can’t perform that action at this time.
0 commit comments