mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Revert "Merge pull request #3101 from alphagov/retry-broadcasts"
This reverts commit1bd99c779d, reversing changes made tod390eb2cac.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user