...
retry_count - sets the number of retries to perform on the database connection (default = 100)
retry_pause - sets the time in seconds to wait between retries (default = 10)
For example, here the we are initializing the database connection object with 10 retries and a pause of five seconds between each call:
...