Crate jono_core

Source
Expand description

jono_core provides shared utilities for the Jono queue system.

This crate includes common functionality used across the Jono components, such as ULID generation, Redis key management, and error types.

Modules§

prelude

Structs§

Context
Topic-specific context for Jono operations
Forum
Central Redis connection pool that manages access to all topics
Inspector
Interface for querying job details
JobMetadata
Metadata for a job in the Jono system
Keys
Redis key generator for Jono components

Enums§

Error
All the possible errors from Jono operations
JobStatus
All the possible states that a job can be in

Functions§

current_timestamp_ms
Get current timestamp in milliseconds since UNIX epoch
generate_job_id
Generate a new ULID for a job
get_redis_url
A standardized way to read JONO_REDIS_URL env var

Type Aliases§

Result
Return for Jono operations that can succeed (OK) or fail (Err)