Commit a8765f48 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

snf-django: Add retry option to AstakosClient

API method decorator should initialize the AstakosClient with the retry
argument set, in order to avoid errors caused by getting an old
connection from pool.
parent 3a7c4ad8
......@@ -107,6 +107,7 @@ def api_method(http_method=None, token_required=True, user_required=True,
astakos = astakos_url or settings.ASTAKOS_BASE_URL
astakos = AstakosClient(astakos,
user_info = astakos.get_user_info(token)
request.user_uniq = user_info["uuid"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment