updated actor to following naming conventions
This commit is contained in:
@@ -110,9 +110,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
Job::update_status(&mut redis_conn, &job.id, JobStatus::Dispatched).await?;
|
||||
println!("Stored job in Redis with key: {} and status: Dispatched", job_key);
|
||||
|
||||
// Add the job to the OSIS queue for processing
|
||||
// Note: The supervisor uses "actor_queue:" prefix, so the correct queue is:
|
||||
let queue_key = "hero:job:actor_queue:osis";
|
||||
// Add the job to the canonical type queue for processing
|
||||
// Canonical dispatch queue per type: hero:q:work:type:{script_type}
|
||||
let queue_key = "hero:q:work:type:osis";
|
||||
let _: () = redis_conn.lpush(&queue_key, &job.id).await?;
|
||||
println!("Dispatched job {} to OSIS queue: {}", job.id, queue_key);
|
||||
|
||||
|
13
examples/scripts/test_logging.rhai
Normal file
13
examples/scripts/test_logging.rhai
Normal file
@@ -0,0 +1,13 @@
|
||||
// test_logging.rhai - Simple test script for logging verification
|
||||
|
||||
print("=== LOGGING TEST SCRIPT ===");
|
||||
print("This is a simple test to verify Rhai logging is working");
|
||||
print("Line 1: Hello from Rhai!");
|
||||
print("Line 2: Testing print statements");
|
||||
print("Line 3: Numbers work too: " + 42);
|
||||
print("Line 4: Boolean values: " + true);
|
||||
print("Line 5: String concatenation: " + "works" + " " + "perfectly");
|
||||
print("=== END OF TEST ===");
|
||||
|
||||
// Return a simple value
|
||||
"Logging test completed successfully"
|
Reference in New Issue
Block a user