You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let logger = logger.new(o!("subgraph_id" => deployment.hash.to_string(),"node_id" => node_id.to_string()));
176
177
ifletSome((assigned,is_paused)) = assigned {
177
178
if assigned == node_id {
178
179
179
180
if is_paused{
180
181
// Subgraph is paused, so we don't start it
181
-
debug!(logger,"Deployment assignee is this node, but it is paused, so we don't start it";"assigned_to" => assigned,"node_id" => &node_id,"paused" => is_paused);
182
+
debug!(logger,"Deployment assignee is this node";"assigned_to" => assigned,"paused" => is_paused,"action" => "ignore");
182
183
returnBox::new(stream::empty());
183
184
}
184
185
185
186
// Start subgraph on this node
186
-
debug!(logger,"Deployment assignee is this node, broadcasting add event";"assigned_to" => assigned,"node_id" => &node_id);
187
+
debug!(logger,"Deployment assignee is this node";"assigned_to" => assigned,"action" => "add");
187
188
Box::new(stream::once(Ok(AssignmentEvent::Add{
188
189
deployment,
189
190
node_id: node_id.clone(),
190
191
})))
191
192
}else{
192
193
// Ensure it is removed from this node
193
-
debug!(logger,"Deployment assignee is not this node, broadcasting remove event";"assigned_to" => assigned,"node_id" => &node_id);
194
+
debug!(logger,"Deployment assignee is not this node";"assigned_to" => assigned,"action" => "remove");
194
195
Box::new(stream::once(Ok(AssignmentEvent::Remove{
195
196
deployment,
196
197
node_id: node_id.clone(),
197
198
})))
198
199
}
199
200
}else{
200
201
// Was added/updated, but is now gone.
201
-
debug!(logger,"Deployment has not assignee, we will get a separate remove event later";"node_id" => &node_id);
202
+
debug!(logger,"Deployment assignee not found in database";"action" => "ignore");
0 commit comments