simpler retry strategy
This commit is contained in:
parent
1fab421a07
commit
23aebda1ab
|
@ -12,11 +12,12 @@ from orm._retry import RetryingQuery
|
||||||
engine = create_engine(DB_URL,
|
engine = create_engine(DB_URL,
|
||||||
convert_unicode=True,
|
convert_unicode=True,
|
||||||
echo=False,
|
echo=False,
|
||||||
pool_size=10,
|
#pool_size=10,
|
||||||
max_overflow=2,
|
#max_overflow=2,
|
||||||
pool_recycle=300,
|
#pool_recycle=300,
|
||||||
pool_pre_ping=True,
|
pool_pre_ping=True,
|
||||||
pool_use_lifo=True)
|
#pool_use_lifo=True
|
||||||
|
)
|
||||||
|
|
||||||
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine, query_cls=RetryingQuery)
|
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine, query_cls=RetryingQuery)
|
||||||
#Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
#Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user