Honor connection_recycle_timeout in MysqlPersistenceDriver

The taskflow library allows us to customize idle_timeout. This change
makes the option set according to the equivalent option in oslo.db
similarly to the other options such as max_overflow.

Change-Id: I1c50f232c4f0c5c10a3dd5a928466f7ef67a9763
This commit is contained in:
Takashi Kajinami 2023-11-15 01:51:49 +09:00
parent 51ae11032e
commit ff1b201d58
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class MysqlPersistenceDriver(object):
'max_pool_size': CONF.database.max_pool_size,
'max_overflow': CONF.database.max_overflow,
'pool_timeout': CONF.database.pool_timeout,
'idle_timeout': CONF.database.connection_recycle_time
}
def initialize(self):

View File

@ -0,0 +1,5 @@
---
features:
- |
Now the ``[database] connection_recycle_time`` option is also used by
connections in MySQL persistence driver.