add logging and retry to connect to the rabbitmq server

This commit is contained in:
2026-09-14 18:34:15 +03:00
parent a93c6d5fca
commit e124d897eb
10 changed files with 241 additions and 90 deletions
-3
View File
@@ -74,10 +74,7 @@ async def logout(response:Response,
response.delete_cookie("refresh_token")
return await auth.logout(refresh_token, access_token)
from src.messaging.producers.producers import email_producer
@router.get("")
async def protected(current_user:UserOut=Depends(require_permissions()))->dict:
await email_producer.send_welcome_email(current_user.email)
return {"protected router": "Hello, this is a protected router"}