zeph-scheduler 0.18.4

Cron-based periodic task scheduler with SQLite persistence for Zeph
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
// SPDX-License-Identifier: MIT OR Apache-2.0

use thiserror::Error;

#[derive(Debug, Error)]
pub enum SchedulerError {
    #[error("invalid cron expression: {0}")]
    InvalidCron(String),
    #[error("database error: {0}")]
    Database(#[from] zeph_db::SqlxError),
    #[error("database error: {0}")]
    Db(#[from] zeph_db::DbError),
    #[error("task execution failed: {0}")]
    TaskFailed(String),
}