-
Notifications
You must be signed in to change notification settings - Fork 686
Refactor slot response streaming messages #3017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -953,7 +953,17 @@ async fn run_event_loop( | |
|
|
||
| Some((slot_id, result)) = slot_msg_rx.recv() => { | ||
| match result { | ||
| Ok(SlotResponse::Log { source, data }) => { | ||
| Ok(SlotResponse::ProtocolVersion { version }) => { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing in the worker sends |
||
| if version != crate::bridge::protocol::SLOT_RESPONSE_PROTOCOL_VERSION { | ||
| tracing::warn!( | ||
| %slot_id, | ||
| version, | ||
| expected = crate::bridge::protocol::SLOT_RESPONSE_PROTOCOL_VERSION, | ||
| "Worker reported unexpected slot response protocol version" | ||
| ); | ||
| } | ||
| } | ||
| Ok(SlotResponse::LogLine { source, data }) => { | ||
| let (prediction_id, poisoned) = if let Some(pred) = predictions.get(&slot_id) { | ||
| if let Some(mut p) = try_lock_prediction(pred) { | ||
| p.append_log(&data); | ||
|
|
@@ -1005,7 +1015,7 @@ async fn run_event_loop( | |
| predictions.remove(&slot_id); | ||
| } | ||
| } | ||
| Ok(SlotResponse::Output { output }) => { | ||
| Ok(SlotResponse::OutputChunk { output, index: _ }) => { | ||
| let poisoned = if let Some(pred) = predictions.get(&slot_id) { | ||
| if let Some(mut p) = try_lock_prediction(pred) { | ||
| p.append_output(output); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old snapshot files
slot_log_serializes.snapandslot_output_serializes.snapare now orphaned since these tests were renamed and switched to inline assertions. They should be deleted.