Skip to content

release: v0.4.0 - #38

Merged
stav121 merged 1 commit into
mainfrom
release/v0.4.0
Aug 21, 2026
Merged

stav121 merged 1 commit into
mainfrom
release/v0.4.0

Conversation

@stav121

@stav121 stav121 commented Aug 21, 2026 •

Copy link
Copy Markdown
Owner
  • Added stable task names via TaskBuilder::name; names are unique per scheduler and add_task rejects duplicates with TaskError::DuplicateTaskName
  • Added runtime control on SchedulerHandle: pause/resume/trigger/remove, each by id or by name (pause_name, trigger_name, ...)
  • Added per-task run history (RunRecord: run_id, started/finished, outcome, attempts), bounded by TaskBuilder::history_limit and read via SchedulerHandle::history(id)
  • Added per-step observability (StepState/StepStatus) for the last completed run, read via SchedulerHandle::step_states(id)
  • Enriched TaskState with name, paused, run_count and last_outcome, plus SchedulerHandle::state_of/id_of_name/status_of_name
  • Added an optional serde feature that derives Serialize/Deserialize on the observable state types (TaskState, Status, RunRecord, StepState, RunOutcome)
  • Added Blackboard: a cheaply-clonable, typed key/value store for passing data between tasks and steps, replacing ad-hoc Arc<Mutex>
  • Reworked the scheduler's observability into a shared registry rebuilt each round so a SchedulerHandle can both observe and control the live task set
  • Added examples/control_and_observability.rs (names, control, history, blackboard); updated README with naming/control/history and blackboard sections
  • Added unit and serde-gated tests (84 unit + 39 doctests by default; 86 unit + 39 doctests with --features serde); clippy, fmt and cargo doc clean
  • Bumped version to 0.4.0

- Added stable task names via TaskBuilder::name; names are unique per scheduler and add_task rejects duplicates with TaskError::DuplicateTaskName
- Added runtime control on SchedulerHandle: pause/resume/trigger/remove, each by id or by name (pause_name, trigger_name, ...)
- Added per-task run history (RunRecord: run_id, started/finished, outcome, attempts), bounded by TaskBuilder::history_limit and read via SchedulerHandle::history(id)
- Added per-step observability (StepState/StepStatus) for the last completed run, read via SchedulerHandle::step_states(id)
- Enriched TaskState with name, paused, run_count and last_outcome, plus SchedulerHandle::state_of/id_of_name/status_of_name
- Added an optional `serde` feature that derives Serialize/Deserialize on the observable state types (TaskState, Status, RunRecord, StepState, RunOutcome)
- Added Blackboard: a cheaply-clonable, typed key/value store for passing data between tasks and steps, replacing ad-hoc Arc<Mutex<HashMap>>
- Reworked the scheduler's observability into a shared registry rebuilt each round so a SchedulerHandle can both observe and control the live task set
- Added examples/control_and_observability.rs (names, control, history, blackboard); updated README with naming/control/history and blackboard sections
- Added unit and serde-gated tests (84 unit + 39 doctests by default; 86 unit + 39 doctests with --features serde); clippy, fmt and cargo doc clean
- Bumped version to 0.4.0
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.35294% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.72%. Comparing base (c6df963) to head (a1445b2).

Files with missing lines Patch % Lines
src/task.rs 74.07% 21 Missing ⚠️
src/scheduler.rs 83.14% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   72.54%   75.72%   +3.17%     
==========================================
  Files           6        7       +1     
  Lines         488      659     +171     
==========================================
+ Hits          354      499     +145     
- Misses        134      160      +26     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stav121
stav121 merged commit 595d606 into main Aug 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant