Remove duplicate retry decorator in Neo4JStorage class.
This commit is contained in:
parent
a124c2d391
commit
8f633c89fd
1 changed files with 0 additions and 12 deletions
|
|
@ -553,18 +553,6 @@ class Neo4JStorage(BaseGraphStorage):
|
||||||
logger.error(f"Error during upsert: {str(e)}")
|
logger.error(f"Error during upsert: {str(e)}")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
@retry(
|
|
||||||
stop=stop_after_attempt(3),
|
|
||||||
wait=wait_exponential(multiplier=1, min=4, max=10),
|
|
||||||
retry=retry_if_exception_type(
|
|
||||||
(
|
|
||||||
neo4jExceptions.ServiceUnavailable,
|
|
||||||
neo4jExceptions.TransientError,
|
|
||||||
neo4jExceptions.WriteServiceUnavailable,
|
|
||||||
neo4jExceptions.ClientError,
|
|
||||||
)
|
|
||||||
),
|
|
||||||
)
|
|
||||||
@retry(
|
@retry(
|
||||||
stop=stop_after_attempt(3),
|
stop=stop_after_attempt(3),
|
||||||
wait=wait_exponential(multiplier=1, min=4, max=10),
|
wait=wait_exponential(multiplier=1, min=4, max=10),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue