Move ID generation into link test method

Unlike the other IDs which are stored in the DB, this isn't relevant
for the Celery task as it invokes a link test. Moving it into the
proxy client will also enable us to generate a second ID in the next
commits, where we start doing a link test for the failover lambda.
This commit is contained in:
Ben Thorner
2021-07-19 14:38:27 +01:00
parent 7fb65761f9
commit 08f48379b4
4 changed files with 32 additions and 27 deletions

View File

@@ -1,4 +1,3 @@
import uuid
from datetime import datetime
from flask import current_app
@@ -250,5 +249,4 @@ def send_broadcast_provider_message(self, broadcast_event_id, provider):
@notify_celery.task(name='trigger-link-test')
def trigger_link_test(provider):
identifier = str(uuid.uuid4())
cbc_proxy_client.get_proxy(provider).send_link_test(identifier)
cbc_proxy_client.get_proxy(provider).send_link_tests()