pub fn claim_worker(
adapter: &dyn DatabaseOperations,
config: &DbBackendConfig,
schema: &AppSchema,
snapshot: &DocumentSnapshot,
) -> Result<DocumentSnapshot, DatabaseError>Expand description
Claims document-backed work before any external delivery. App writes reject an active lease, and a crashed worker releases ownership through expiry.