MCPcopy
hub / github.com/psycopg/psycopg / time_to_give_up

Method time_to_give_up

psycopg_pool/psycopg_pool/base.py:227–229  ·  view source on GitHub ↗

Return True if we are tired of trying this attempt. Meh.

(self, now: float)

Source from the content-addressed store, hash-verified

225 self.delay = max(0.0, self.give_up_at - now)
226
227 def time_to_give_up(self, now: float) -> bool:
228 """Return True if we are tired of trying this attempt. Meh."""
229 return self.give_up_at > 0.0 and now >= self.give_up_at

Callers 4

_add_connectionMethod · 0.95
_add_connectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected