Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Files

Latest commit

 

History

History
29 lines (20 loc) · 679 Bytes

exceptions.md

File metadata and controls

29 lines (20 loc) · 679 Bytes
sidebar_label title
exceptions
gqlalchemy.exceptions

connection_handler

def connection_handler(func,
                       delay: float = 0.01,
                       timeout: float = 5.0,
                       backoff: int = 2)

Wrapper for a wait on the connection.

Arguments:

  • func - A function that tries to create the connection
  • delay - A float that defines how long to wait between retries.
  • timeout - A float that defines how long to wait for the port.
  • backoff - An integer used for multiplying the delay.

Raises:

  • GQLAlchemyWaitForConnectionError - Raises an error after the timeout period has passed.