Skip to main content

close_old_connections

Iterates through all initialized database connections and closes any that are determined to be unusable or obsolete.

def close_old_connections(
**kwargs: dict
) - > null

Iterates through all initialized database connections and closes those that are unusable or have exceeded their maximum age.

Parameters

NameTypeDescription
**kwargsdictArbitrary keyword arguments passed to the function, though not explicitly used in the current implementation.

Returns

TypeDescription
nullNothing is returned; the function performs in-place cleanup of the connection pool.