Skip to content

Instantly share code, notes, and snippets.

@sssoleileraaa
Created September 29, 2021 20:40
Show Gist options
  • Save sssoleileraaa/8ed991737752a35785033ceac903d878 to your computer and use it in GitHub Desktop.
Save sssoleileraaa/8ed991737752a35785033ceac903d878 to your computer and use it in GitHub Desktop.
slow down deletion of conversation
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