class documentation
class IPromiseStore(ABC):
Known subclasses: resonate.stores.local.LocalPromiseStore
, resonate.stores.remote.RemotePromiseStore
Undocumented
Method | cancel |
Undocumented |
Method | create |
Undocumented |
Method | create |
Undocumented |
Method | get |
Undocumented |
Method | reject |
Undocumented |
Method | resolve |
Undocumented |
@abstractmethod
def cancel(self, *, id:
def cancel(self, *, id:
str
, ikey: IdempotencyKey
, strict: bool
, headers: Headers
, data: Data
) -> DurablePromiseRecord
:
¶
Undocumented
@abstractmethod
def create(self, *, id:
def create(self, *, id:
str
, ikey: IdempotencyKey
, strict: bool
, headers: Headers
, data: Data
, timeout: int
, tags: Tags
) -> DurablePromiseRecord
:
¶
Undocumented
@abstractmethod
def create_with_task(self, *, id:
def create_with_task(self, *, id:
str
, ikey: str | None
, strict: bool
, headers: Headers
, data: Data
, timeout: int
, tags: Tags
, pid: str
, ttl: int
) -> tuple[ DurablePromiseRecord, TaskRecord | None]
:
¶
Undocumented
@abstractmethod
def reject(self, *, id:
def reject(self, *, id:
str
, ikey: IdempotencyKey
, strict: bool
, headers: Headers
, data: Data
) -> DurablePromiseRecord
:
¶
Undocumented
@abstractmethod
def resolve(self, *, id:
def resolve(self, *, id:
str
, ikey: IdempotencyKey
, strict: bool
, headers: Headers
, data: Data
) -> DurablePromiseRecord
:
¶
Undocumented