pub fn lock_journal(agent: &AgentSettings) -> Result<File, AppError>Expand description
Takes the worker’s journal lock for as long as the returned file is open: one agent per worker ID and data directory.
§Errors
AppError::BadArgument if another agent holds it, or it can’t be created.