Revert "Merge pull request #3101 from alphagov/retry-broadcasts"

This reverts commit 1bd99c779d, reversing
changes made to d390eb2cac.
This commit is contained in:
Leo Hemsted
2021-02-08 11:02:34 +00:00
parent 49e6ec1ead
commit bee0059e53
8 changed files with 60 additions and 421 deletions

View File

@@ -25,11 +25,7 @@ from app.utils import DATETIME_FORMAT, format_sequential_number
# the preceeding Alert message in the previous_provider_messages field
class CBCProxyFatalException(Exception):
pass
class CBCProxyRetryableException(Exception):
class CBCProxyException(Exception):
pass
@@ -119,9 +115,7 @@ class CBCProxyClientBase(ABC):
if not result:
failover_result = self._invoke_lambda(self.failover_lambda_name, payload)
if not failover_result:
raise CBCProxyRetryableException(
f'Lambda failed for both {self.lambda_name} and {self.failover_lambda_name}'
)
raise CBCProxyException(f'Lambda failed for both {self.lambda_name} and {self.failover_lambda_name}')
return result