diff options
| author | Joshua Harlow <harlowja@gmail.com> | 2014-01-01 18:51:17 -0800 |
|---|---|---|
| committer | Joshua Harlow <harlowja@gmail.com> | 2014-01-01 18:51:47 -0800 |
| commit | 312801ca5e256fa014dda4498b03a896bcbf4fa3 (patch) | |
| tree | 003565ed509ccbe205030a862d77bf5e9291b108 /taskflow/persistence/backends/impl_sqlalchemy.py | |
| parent | 9632fe63929fec9893f01e63493b6a4909312d79 (diff) | |
| download | taskflow-312801ca5e256fa014dda4498b03a896bcbf4fa3.tar.gz | |
Allow max_backoff and use count instead of attempts
Change-Id: I18f7e2a32b290dcc5b09c9c0c1fa098c47e477a7
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.", |
