Added request concluded status to Link API

pull/542/head
Mark Qvist 2024-08-29 13:14:55 +02:00
rodzic cf87b1352a
commit 8ee11ac32c
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -1288,6 +1288,17 @@ class RequestReceipt():
else:
return None
def concluded(self):
"""
:returns: True if the associated request has concluded (successfully or with a failure), otherwise False.
"""
if self.status == RequestReceipt.READY:
return True
elif self.status == RequestReceipt.FAILED:
return True
else:
return False
class RequestReceiptCallbacks: