Commit e735638e authored by Christos Stavrakakis's avatar Christos Stavrakakis

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 77f75a60
......@@ -106,6 +106,7 @@ def api_method(http_method=None, token_required=True, user_required=True,
astakos = astakos_url or settings.ASTAKOS_BASE_URL
astakos = AstakosClient(astakos,
use_pool=True,
retry=2,
logger=logger)
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