Created
September 29, 2021 20:40
-
-
Save sssoleileraaa/8ed991737752a35785033ceac903d878 to your computer and use it in GitHub Desktop.
slow down deletion of conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/securedrop_client/api_jobs/sources.py b/securedrop_client/api_jobs/sources.py | |
index b1e4e81..1f2dfa7 100644 | |
--- a/securedrop_client/api_jobs/sources.py | |
+++ b/securedrop_client/api_jobs/sources.py | |
@@ -47,6 +47,8 @@ class DeleteConversationJob(ApiJob): | |
""" | |
try: | |
api_client.delete_conversation(uuid=self.uuid) | |
+ import time | |
+ time.sleep(5) | |
return self.uuid | |
except (RequestTimeoutError, ServerConnectionError): | |
raise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment