Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
HammadB committed Mar 20, 2024
1 parent c19de4e commit 9248399
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions rust/worker/src/execution/orchestration/hnsw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ impl Handler<PullLogsOutput> for HnswQueryOrchestrator {
ctx: &crate::system::ComponentContext<HnswQueryOrchestrator>,
) {
self.state = ExecutionState::Dedupe;
match self.result_channel.take() {
Some(tx) => {
let _ = tx.send("done".to_string());
}
None => {
// Log an error
}
}
// TODO: implement the remaining state transitions and operators
// The query orchestrator kills itself in the last state
}
Expand Down
2 changes: 1 addition & 1 deletion rust/worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn query_service_entrypoint() {
}
};

let mut system: system::System = system::System::new();
let system: system::System = system::System::new();

// TODO: configurable
let dispatcher =
Expand Down

0 comments on commit 9248399

Please sign in to comment.