13 lines
235 B
Python
13 lines
235 B
Python
import asyncio
|
|
|
|
from src.core.redis_client import RedisClient
|
|
|
|
redis = RedisClient()
|
|
|
|
|
|
class AsyncQueue(asyncio.Queue):
|
|
|
|
async def put(self, item):
|
|
await redis.set_task_to_queue(item)
|
|
return await super().put(item)
|