- Implemented get_error() method to fetch job error messages from Redis - Mirrors get_result() pattern for consistency - Used by supervisor to retrieve job errors without manual Redis queries - Cleanup: removed old runner_osis directory
Runner Examples
This directory contains organized examples demonstrating different aspects of the runner system.
Directory Structure
examples/
├── osiris/ # OSIRIS context and object management examples
├── sal/ # System Abstraction Layer (SAL) DSL examples
└── utils/ # Utility examples (signing, crypto, etc.)
Running Examples
OSIRIS Example
Complete example demonstrating OSIRIS context management, Note and Event creation, and access control:
cargo run --example osiris
See osiris/README.md for details.
SAL Example
Examples demonstrating various SAL DSL modules for system operations:
cargo run --example sal
See sal/README.md for details.
Utility Examples
Utility examples for cryptographic operations and job signing:
cargo run --example sign_job --features crypto
See utils/README.md for details.
Prerequisites
- Redis server running on
localhost:6379 - For OSIRIS examples: HeroDB instance (or uses local SQLite)
- For crypto examples: Enable the
cryptofeature flag
Example Structure
Each example folder contains:
main.rs- The main Rust example code*.rhai- Rhai script files demonstrating various featuresREADME.md- Detailed documentation for that example category