mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-24 15:48:11 +02:00
Merge pull request #212 from R0m1k3/antigravity
fix: Disable ImprovedSearchService auto-init to restore Amazon functi…
This commit is contained in:
1 file changed
+5
-4
+5
-4
@@ -147,9 +147,10 @@ async def lifespan(app: FastAPI):
|
|||||||
logger.info("Initializing Amazon scraper service...")
|
logger.info("Initializing Amazon scraper service...")
|
||||||
await amazon_scraper_service.initialize()
|
await amazon_scraper_service.initialize()
|
||||||
|
|
||||||
# Initialize Improved Search Service (persistent browser for Search/Comparatif)
|
# Note: ImprovedSearchService is initialized on-demand (not at startup)
|
||||||
logger.info("Initializing Improved Search Service...")
|
# to avoid connection conflicts with AmazonScraperService on Browserless
|
||||||
await improved_search_service.initialize()
|
# logger.info("Initializing Improved Search Service...")
|
||||||
|
# await improved_search_service.initialize()
|
||||||
|
|
||||||
# Note: TrackingScraperService is initialized on-demand (not at startup)
|
# Note: TrackingScraperService is initialized on-demand (not at startup)
|
||||||
# to avoid connection conflicts with other browser services
|
# to avoid connection conflicts with other browser services
|
||||||
@@ -160,7 +161,7 @@ async def lifespan(app: FastAPI):
|
|||||||
scheduler.shutdown(wait=True)
|
scheduler.shutdown(wait=True)
|
||||||
stop_catalog_scheduler()
|
stop_catalog_scheduler()
|
||||||
await amazon_scraper_service.shutdown()
|
await amazon_scraper_service.shutdown()
|
||||||
await improved_search_service.shutdown()
|
# await improved_search_service.shutdown()
|
||||||
# TrackingScraperService shutdown is handled on-demand
|
# TrackingScraperService shutdown is handled on-demand
|
||||||
logger.info("Application shutdown complete")
|
logger.info("Application shutdown complete")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user