Skip to content

Commit

Permalink
bugfix: model retriever logging initialized at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
m-karo committed Sep 27, 2024
1 parent 97ce658 commit 9487f3a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions emf/model_retriever/worker.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import logging
import time
import config
import json
import sys
import uuid
from emf.model_retriever.model_retriever import HandlerModelsToMinio, HandlerModelsValidator, HandlerMetadataToElastic
from emf.common.integrations import elastic, opdm, minio_api, edx, rabbit
from emf.common.logging import custom_logger
from emf.common.config_parser import parse_app_properties
from emf.common.converters import opdm_metadata_to_json

# Initialize custom logger
elk_handler = custom_logger.initialize_custom_logger(extra={'worker': 'model-retriever', 'worker_uuid': str(uuid.uuid4())})
logger = logging.getLogger(__name__)

import config
from emf.model_retriever.model_retriever import HandlerModelsToMinio, HandlerModelsValidator, HandlerMetadataToElastic
from emf.common.integrations import elastic, opdm, minio_api, edx, rabbit
from emf.common.config_parser import parse_app_properties
from emf.common.converters import opdm_metadata_to_json

parse_app_properties(caller_globals=globals(), path=config.paths.model_retriever.model_retriever)

# RabbitMQ consumer implementation
Expand Down

0 comments on commit 9487f3a

Please sign in to comment.