dont try and send broadccast event if it's already in technical-failure

this gives us an option to manually set a status in the database and
avoid things being stuck in a retry loop forever
This commit is contained in:
Leo Hemsted
2021-02-05 12:46:23 +00:00
parent 0ddebc63a8
commit d582e35471
2 changed files with 13 additions and 2 deletions

View File

@@ -709,8 +709,10 @@ def test_check_provider_message_should_send_doesnt_raise_if_newer_event_not_acke
BroadcastProviderMessageStatus.ACK,
BroadcastProviderMessageStatus.ERR,
# TODO: Make this case fail - so we have a way of aborting a send if it's stuck in retry loop
BroadcastProviderMessageStatus.TECHNICAL_FAILURE,
pytest.param(
BroadcastProviderMessageStatus.TECHNICAL_FAILURE,
marks=pytest.mark.xfail(raises=CBCProxyFatalException)
),
])
def test_check_provider_message_should_send_doesnt_raise_if_current_event_already_has_provider_message(
sample_template,