Skip to content

messaging.campaigns.protocols

protocols

Campaign messaging protocols.

Classes

CampaignDispatcher

Bases: Protocol

Enqueues campaign batches for worker-side delivery.

Source code in src/codex_platform/messaging/campaigns/protocols.py
class CampaignDispatcher(Protocol):
    """Enqueues campaign batches for worker-side delivery."""

    def enqueue_batch(self, batch: CampaignBatchDTO) -> str:
        """Enqueue a batch and return the backend job identifier."""
        ...
Functions
enqueue_batch(batch)

Enqueue a batch and return the backend job identifier.

Source code in src/codex_platform/messaging/campaigns/protocols.py
def enqueue_batch(self, batch: CampaignBatchDTO) -> str:
    """Enqueue a batch and return the backend job identifier."""
    ...