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
This commit is contained in:
@@ -80,7 +80,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let job1 = JobBuilder::new()
|
||||
.caller_id("example_client")
|
||||
.context_id("demo_context")
|
||||
.payload(create_note_script)
|
||||
.payload(&create_note_script)
|
||||
.runner("demo_runner")
|
||||
.executor("rhai")
|
||||
.timeout(30)
|
||||
@@ -114,7 +114,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let job2 = JobBuilder::new()
|
||||
.caller_id("example_client")
|
||||
.context_id("demo_context")
|
||||
.payload(create_event_script)
|
||||
.payload(&create_event_script)
|
||||
.runner("demo_runner")
|
||||
.executor("rhai")
|
||||
.timeout(30)
|
||||
@@ -148,7 +148,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let job3 = JobBuilder::new()
|
||||
.caller_id("example_client")
|
||||
.context_id("demo_context")
|
||||
.payload(query_script)
|
||||
.payload(&query_script)
|
||||
.runner("demo_runner")
|
||||
.executor("rhai")
|
||||
.timeout(30)
|
||||
@@ -182,7 +182,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let job4 = JobBuilder::new()
|
||||
.caller_id("example_client")
|
||||
.context_id("demo_context")
|
||||
.payload(access_denied_script)
|
||||
.payload(&access_denied_script)
|
||||
.runner("demo_runner")
|
||||
.executor("rhai")
|
||||
.timeout(30)
|
||||
|
||||
Reference in New Issue
Block a user