updated actor to following naming conventions

This commit is contained in:
Maxime Van Hees
2025-08-14 14:15:19 +02:00
parent 5140531832
commit 32282f465e
6 changed files with 74 additions and 20 deletions

View File

@@ -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);