mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-28 09:15:12 -05:00
Cleanup scanner processing span
This commit is contained in:
parent
3602905e86
commit
c5fa3ecb01
@ -101,6 +101,7 @@ class RequestProcessor:
|
||||
finally:
|
||||
self._processing = False
|
||||
|
||||
@tracer.start_as_current_span("process video")
|
||||
async def process_request(self):
|
||||
cur = await self._database.fetchrow(
|
||||
"""
|
||||
@ -128,7 +129,8 @@ class RequestProcessor:
|
||||
return False
|
||||
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}")
|
||||
try:
|
||||
show = await self._run_request(request)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user