Commit Graph

7 Commits

Author SHA1 Message Date
Timur Gordon
0c168690a6 Use hero-job crate instead of local job module 2025-11-04 13:41:02 +01:00
Timur Gordon
4158d02f3d Update osiris dependency to use osiris-core package 2025-11-04 13:09:13 +01:00
Timur Gordon
564b81b708 Update runner to use engine factory pattern with Rhai packages
- Reverted from generic Package approach to factory function pattern
- Factory creates Engine::new_raw() + registers package (efficient)
- AsyncRunner and SyncRunner use engine_factory: Arc<dyn Fn() -> Engine>
- Each job gets a fresh engine instance (cheap with factory pattern)
- Package is created once inside factory, engines reuse it
2025-10-28 12:20:45 +01:00
Timur Gordon
0c918a8f5f Add get_error method to client for standardized error retrieval
- 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
2025-10-28 03:32:57 +01:00
Timur Gordon
14ff6cae67 feat: reorganize examples and add signature support to JobBuilder
- Reorganized examples into osiris/, sal/, and utils/ folders
- Moved hardcoded scripts to separate .rhai files
- Added signature() method to JobBuilder for job signing
- Updated OSIRIS context to use block_in_place instead of runtime
- Removed runtime field from OsirisContext
- Added typed save() methods for Note and Event objects
- Updated all examples to use new structure and APIs
2025-10-27 13:49:39 +01:00
Timur Gordon
d744c2cd16 add tests and fix job impl 2025-09-09 17:54:09 +02:00
Timur Gordon
629d59f7db merge runners into single project 2025-09-09 15:42:20 +02:00