Skip to main content

derive_batch_id

Function derive_batch_id 

Source
pub fn derive_batch_id(
    session_id: &str,
    source_key: Option<&str>,
    now_epoch_ms: u64,
    nonce: Option<u64>,
) -> String
Expand description

Derive the durable id for a newly enqueued batch.

nonce disambiguates batches enqueued within the same millisecond; backends whose id uniqueness already comes from elsewhere pass None.