MCPcopy Create free account
hub / github.com/adobe/Marinus / backoff_giveup

Method backoff_giveup

python3_cron_scripts/libs3/APIHelper.py:50–64  ·  view source on GitHub ↗

This is a temporary addition to see how often the system calls this function. It will need tuning.

(self, details)

Source from the content-addressed store, hash-verified

48 )
49
50 def backoff_giveup(self, details):
51 """
52 This is a temporary addition to see how often the system calls this function.
53 It will need tuning.
54 """
55 self._logger.error(
56 "FATAL: Calling function {target} could not connect with args {args} and kwargs "
57 "{kwargs}".format(**details)
58 )
59
60 # This is temporary addition that will require tuning to get the correct threshold
61 self._allowed_giveup_failures = self._allowed_giveup_failures - 1
62 if self._allowed_giveup_failures <= 0:
63 self._logger.error("FATAL: Number of allowed failures reached. Exiting.")
64 exit(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected