update
This commit is contained in:
parent
17a00c3595
commit
5bcbc257de
@ -23,7 +23,7 @@ from utils.logging.logging import LOGGER_CONFIG
|
|||||||
logging.config.dictConfig(LOGGER_CONFIG)
|
logging.config.dictConfig(LOGGER_CONFIG)
|
||||||
# Get the logger
|
# Get the logger
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
tracer = trace.get_tracer()
|
tracer = trace.get_tracer("sbt_celery_ai")
|
||||||
|
|
||||||
logger.info("OCR engine configfs: \n", ocr_cfg)
|
logger.info("OCR engine configfs: \n", ocr_cfg)
|
||||||
logger.info("KVU configfs: \n", kvu_cfg)
|
logger.info("KVU configfs: \n", kvu_cfg)
|
||||||
|
@ -14,7 +14,7 @@ from .task_warpper import VerboseTask
|
|||||||
logging.config.dictConfig(LOGGER_CONFIG)
|
logging.config.dictConfig(LOGGER_CONFIG)
|
||||||
# Get the logger
|
# Get the logger
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
tracer = trace.get_tracer()
|
tracer = trace.get_tracer("sbt_celery_ai")
|
||||||
|
|
||||||
@app.task(base=VerboseTask,name="process_sbt_invoice", track_started=True)
|
@app.task(base=VerboseTask,name="process_sbt_invoice", track_started=True)
|
||||||
def process_sbt_invoice(rq_id, list_url, metadata):
|
def process_sbt_invoice(rq_id, list_url, metadata):
|
||||||
|
@ -11,7 +11,7 @@ from utils.logging.logging import LOGGER_CONFIG
|
|||||||
|
|
||||||
logging.config.dictConfig(LOGGER_CONFIG)
|
logging.config.dictConfig(LOGGER_CONFIG)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
tracer = trace.get_tracer()
|
tracer = trace.get_tracer("sbt_celery_ai")
|
||||||
|
|
||||||
os.environ['PYTHONPATH'] = '/home/thucpd/thucpd/cope2n-ai/cope2n-ai/'
|
os.environ['PYTHONPATH'] = '/home/thucpd/thucpd/cope2n-ai/cope2n-ai/'
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import json
|
|||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from opentelemetry import trace
|
from opentelemetry import trace
|
||||||
|
|
||||||
tracer = trace.get_tracer()
|
tracer = trace.get_tracer("sbt_celery_ai")
|
||||||
|
|
||||||
@tracer.start_as_current_span("longestCommonSubsequence")
|
@tracer.start_as_current_span("longestCommonSubsequence")
|
||||||
def longestCommonSubsequence(text1: str, text2: str) -> int:
|
def longestCommonSubsequence(text1: str, text2: str) -> int:
|
||||||
|
Loading…
Reference in New Issue
Block a user