[Manager] Wrap manager requests with log wrapper (#3081)

This commit is contained in:
Christian Byrne
2025-03-16 08:37:17 -07:00
committed by GitHub
parent f583015a14
commit 2a860d72b2
3 changed files with 61 additions and 24 deletions

View File

@@ -20,6 +20,9 @@ export const useManagerQueue = () => {
const clientQueueLength = computed(() => clientQueueItems.value.length)
const onCompletedQueue = ref<((() => void) | undefined)[]>([])
const onCompleteWaitingCount = ref(0)
const uncompletedCount = computed(
() => clientQueueLength.value + onCompleteWaitingCount.value
)
const serverQueueStatus = ref<ManagerWsQueueStatus>(ManagerWsQueueStatus.DONE)
const isServerIdle = computed(
@@ -93,6 +96,7 @@ export const useManagerQueue = () => {
allTasksDone,
statusMessage: readonly(serverQueueStatus),
queueLength: clientQueueLength,
uncompletedCount,
enqueueTask,
clearQueue,