db: more
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-18 09:37:53 -04:00
parent 6c353dcaf8
commit e06df9c8b0
3 changed files with 10 additions and 10 deletions
+6 -6
View File
@@ -597,9 +597,9 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N
except Exception as e:
print(f"ERROR: Failed processing TV series {item}: {e}")
# Yield control every 3 TV series to allow other requests
if tv_count % 3 == 0:
await asyncio.sleep(0.01) # 10ms yield to process other requests
# Yield control every TV series to allow other requests
if tv_count % 1 == 0:
await asyncio.sleep(0.2) # 200ms yield to process other requests
print(f"INFO: Processed {tv_count} TV series, yielding to other requests...")
if scan_type in ["both", "movies"] and scan_path in config.movie_paths:
@@ -614,9 +614,9 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N
except Exception as e:
print(f"ERROR: Failed processing movie {item}: {e}")
# Yield control every 5 movies to allow other requests (webhooks, web interface)
if movie_count % 5 == 0:
await asyncio.sleep(0.01) # 10ms yield to process other requests
# Yield control every 2 movies to allow other requests (webhooks, web interface)
if movie_count % 2 == 0:
await asyncio.sleep(0.2) # 200ms yield to process other requests
print(f"INFO: Processed {movie_count} movies, yielding to other requests...")
print(f"INFO: Completed movie scan: {movie_count} movies processed in {scan_path}")