Protect against missing key in get_metrics
@@ -802,6 +802,7 @@ class Worker(ServerNode):
executing={
key: now - self.tasks[key].start_time
for key in self.active_threads.values()
+ if key in self.tasks
},
)
custom = {}
