reifydb_sub_task/lib.rs
1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Copyright (c) 2026 ReifyDB
3
4//! Background-task scheduler for ReifyDB-internal jobs: registering recurring or deferred work, dispatching it on
5//! the runtime's pools, and tracking handles so an admin can list, cancel, or inspect what is running. Used for
6//! flushers, compactors, telemetry collection, and any subsystem-owned background loop that benefits from sharing
7//! the workspace's scheduling discipline.
8//!
9//! The crate is not a user-facing job system - it does not run user-supplied procedures on a cron. That kind of
10//! workload belongs in routines and flow.
11
12#![cfg_attr(not(debug_assertions), deny(clippy::disallowed_methods))]
13#![cfg_attr(debug_assertions, warn(clippy::disallowed_methods))]
14#![cfg_attr(not(debug_assertions), deny(warnings))]
15#![allow(clippy::tabs_in_doc_comments)]
16
17pub mod context;
18#[cfg(not(reifydb_single_threaded))]
19pub mod coordinator;
20#[cfg(not(reifydb_single_threaded))]
21pub mod factory;
22#[cfg(not(reifydb_single_threaded))]
23pub mod handle;
24pub mod registry;
25pub mod schedule;
26#[cfg(not(reifydb_single_threaded))]
27pub mod subsystem;
28pub mod task;