store
store
¶
SQLite-backed persistence for scheduled tasks and run logs.
Classes¶
SchedulerStore
¶
SQLite CRUD store for scheduled tasks and their run logs.
Source code in src/openjarvis/scheduler/store.py
Functions¶
save_task
¶
Insert or replace a scheduled task record.
Source code in src/openjarvis/scheduler/store.py
get_task
¶
Retrieve a single task by ID, or None if not found.
Source code in src/openjarvis/scheduler/store.py
list_tasks
¶
Return all tasks, optionally filtered by status.
Source code in src/openjarvis/scheduler/store.py
get_due_tasks
¶
Return active tasks whose next_run is at or before now_iso.
Source code in src/openjarvis/scheduler/store.py
update_task
¶
delete_task
¶
log_run
¶
log_run(task_id: str, started_at: str, finished_at: str, success: bool, result: str = '', error: str = '') -> None
Record a single execution of a task.
Source code in src/openjarvis/scheduler/store.py
get_run_logs
¶
Return the most recent run logs for task_id.