job_queue: stop inventing wire data just to preserve the old source tag
This commit is contained in:
parent
0c4d56a585
commit
b04e7d985d
2 changed files with 19 additions and 38 deletions
|
|
@ -308,15 +308,6 @@ impl hive_jobq_wire::WireNode for NodeKind {
|
|||
{
|
||||
data.insert("inputs".to_owned(), inputs.clone().into());
|
||||
}
|
||||
// The DAG container's own metadata — nowhere else on the wire, since
|
||||
// `GraphNode` carries no DAG-level fields (a group root is an
|
||||
// ordinary node). `hivectl` needs `source` for its progress line;
|
||||
// `reason` rides along for free rather than adding a second variant
|
||||
// later for the one field the first pass missed.
|
||||
if let NodeKind::Dag { source, reason, .. } = self {
|
||||
data.insert("source".to_owned(), source.as_str().into());
|
||||
data.insert("reason".to_owned(), reason.clone().into());
|
||||
}
|
||||
// Not in the payload at all — the build log is keyed on node identity
|
||||
// in a side table, which is why `data` is handed the id.
|
||||
if let Some(log) = crate::build_logs::global().and_then(|h| h.id_for_node(id)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue