feat: feed worker metrics into runtime router
This commit is contained in:
@@ -96,7 +96,11 @@ for (const id of [...new Set(workers)].sort()) {
|
||||
activeStreams > 0 &&
|
||||
lastStreamStartedAt &&
|
||||
staleAgeMs > staleMs &&
|
||||
(!lastStreamEndedAt || lastStreamEndedAt < lastStreamStartedAt),
|
||||
(
|
||||
!lastStreamEndedAt ||
|
||||
lastStreamEndedAt >= lastStreamStartedAt ||
|
||||
now - lastStreamEndedAt > staleMs
|
||||
),
|
||||
);
|
||||
if (action === 'reconcile' && stale && apply) {
|
||||
await client
|
||||
|
||||
Reference in New Issue
Block a user