GitHub

DeduplicatingOffer

API reference for DeduplicatingOffer.

An Offer that also takes deduplicate: an offer whose id is stored is ignored, unless deduplicate is "untilExecuted" and that element has completed or failed its final attempt. The offer is then stored as a new element after earlier offers, atomically with respect to concurrent offers of the id.

Functions

__call__

__call__(*, name, id, element, is_custom_id, delay=None, deduplicate='untilRemoved') -> Effect[None, PersistedQueueError]
ParameterTypeDescription
namestr
idstr
elementobject
is_custom_idbool
delayDuration | None = None
deduplicateDeduplicate = 'untilRemoved'

Returns Effect[None, PersistedQueueError]

def __call__(
    self,
    *,
    name: str,
    id: str,
    element: object,
    is_custom_id: bool,
    delay: Duration | None = None,
    deduplicate: Deduplicate = "untilRemoved",
) -> Effect[None, PersistedQueueError]: ...