mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-28 17:25:08 -05:00
Cleanup scanner processing span
This commit is contained in:
parent
3602905e86
commit
c5fa3ecb01
@ -101,6 +101,7 @@ class RequestProcessor:
|
|||||||
finally:
|
finally:
|
||||||
self._processing = False
|
self._processing = False
|
||||||
|
|
||||||
|
@tracer.start_as_current_span("process video")
|
||||||
async def process_request(self):
|
async def process_request(self):
|
||||||
cur = await self._database.fetchrow(
|
cur = await self._database.fetchrow(
|
||||||
"""
|
"""
|
||||||
@ -128,7 +129,8 @@ class RequestProcessor:
|
|||||||
return False
|
return False
|
||||||
request = Request.model_validate(cur)
|
request = Request.model_validate(cur)
|
||||||
|
|
||||||
with tracer.start_as_current_span(f"process {request.title}") as span:
|
span = trace.get_current_span()
|
||||||
|
span.update_name(f"process {request.title}")
|
||||||
logger.info(f"Starting to process {request.title}")
|
logger.info(f"Starting to process {request.title}")
|
||||||
try:
|
try:
|
||||||
show = await self._run_request(request)
|
show = await self._run_request(request)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user