This commit is contained in:
2026-05-05 23:18:54 +05:30
commit fe29ff0c57
13 changed files with 345 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import requests
from logging_config import get_logger
logger = get_logger(__name__)
class FetchQueueClient:
def __init__(self, config):
self.url = config.FETCH_QUEUE_URL
def fetch(self, payload):
response = requests.post(
self.url,
json=payload,
verify=False,
timeout=20
)
response.raise_for_status()
return response.json()