From 695df5eb3e2ed6ebd286eafcf657410a5d748e65 Mon Sep 17 00:00:00 2001 From: elitonzky Date: Wed, 11 Dec 2024 20:28:33 -0300 Subject: [PATCH] fix: remove unnecessary imports --- marketplace/services/vtex/generic_service.py | 1 - marketplace/wpp_products/tasks.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/marketplace/services/vtex/generic_service.py b/marketplace/services/vtex/generic_service.py index 8a7e3489..27e54baf 100644 --- a/marketplace/services/vtex/generic_service.py +++ b/marketplace/services/vtex/generic_service.py @@ -173,7 +173,6 @@ def __init__( webhook: Optional[dict] = None, sellers_ids: list[str] = None, product_feed: Optional[ProductFeed] = None, - ): """ Service for processing product updates via VTEX webhooks. diff --git a/marketplace/wpp_products/tasks.py b/marketplace/wpp_products/tasks.py index 8fff860a..64db4fa8 100644 --- a/marketplace/wpp_products/tasks.py +++ b/marketplace/wpp_products/tasks.py @@ -30,8 +30,6 @@ from marketplace.services.vtex.generic_service import APICredentials from marketplace.applications.models import App -from django_redis import get_redis_connection - from marketplace.wpp_products.utils import ( ProductBatchUploader, ProductUploader, @@ -675,7 +673,6 @@ def task_dequeue_webhooks(app_uuid: str, celery_queue: str): print( f"Starting dequeue process for App: {app_uuid}. Total items: {queue.length()}" ) - import time while True: # Renew the lock to ensure we don't lose it while processing