OutboxStorageStrategy
Interface for backend outbox storage implementation.
Source code in event_sourcery/_event_store/outbox.py
outbox_entries(limit)
Returns an iterator over context managers for outbox entries to be published. The context manager ensures transactional processing.
If the event is processed without exception, it is removed from the outbox.
If an exception occurs, the event remains in the outbox for retry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit |
int
|
The maximum number of entries to return. |
required |
Returns:
| Type | Description |
|---|---|
Iterator[AbstractContextManager[RecordedRaw]]
|
Iterator[AbstractContextManager[RecordedRaw]]: Context managers to wrap record processing |