This is a temporary addition to see how often the system calls this function. It will need tuning.
(self, details)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected