diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-01-03 14:15:46 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-01-03 14:15:46 +0000 |
| commit | 11903eab66cb5637a244d9f171df72ddfc842d97 (patch) | |
| tree | e4982be434fd87c4a37e04cf65df8c0039c35b5e /taskflow/persistence/backends/impl_sqlalchemy.py | |
| parent | 50ef06ac2f437ed2a3d15fa87b356e410b12360c (diff) | |
| parent | 312801ca5e256fa014dda4498b03a896bcbf4fa3 (diff) | |
| download | taskflow-11903eab66cb5637a244d9f171df72ddfc842d97.tar.gz | |
Merge "Allow max_backoff and use count instead of attempts"
Diffstat (limited to 'taskflow/persistence/backends/impl_sqlalchemy.py')
| -rw-r--r-- | taskflow/persistence/backends/impl_sqlalchemy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/taskflow/persistence/backends/impl_sqlalchemy.py b/taskflow/persistence/backends/impl_sqlalchemy.py index f1d94f1..f9d9519 100644 --- a/taskflow/persistence/backends/impl_sqlalchemy.py +++ b/taskflow/persistence/backends/impl_sqlalchemy.py @@ -188,7 +188,7 @@ class SQLAlchemyBackend(base.Backend): # after a given number of backoffs (with a backoff sleeping period # between each attempt)... attempts_left = max_retries - for sleepy_secs in misc.ExponentialBackoff(attempts=max_retries): + for sleepy_secs in misc.ExponentialBackoff(max_retries): LOG.warn("SQL connection failed due to '%s', %s attempts left.", failures[-1].exc, attempts_left) LOG.info("Attempting to test the connection again in %s seconds.", |
