Skip to content

Commit e026c25

Browse files
fix(telemetry): restore batch count tracking
Restores the queue_run_multiple_batches_submitted tracking that was accidentally removed during conflict resolution. This tracking was added in PR #6511 to track when users submit multiple batches. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6033d7b commit e026c25

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/actionbar/ComfyRunButton/ComfyQueueButton.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ import { computed } from 'vue'
8888
import { useI18n } from 'vue-i18n'
8989
9090
import { isCloud } from '@/platform/distribution/types'
91+
import { useTelemetry } from '@/platform/telemetry'
9192
import { useCommandStore } from '@/stores/commandStore'
9293
import {
9394
useQueuePendingTaskCountStore,
@@ -163,6 +164,12 @@ const queuePrompt = async (e: Event) => {
163164
? 'Comfy.QueuePromptFront'
164165
: 'Comfy.QueuePrompt'
165166
167+
if (batchCount.value > 1) {
168+
useTelemetry()?.trackUiButtonClicked({
169+
button_id: 'queue_run_multiple_batches_submitted'
170+
})
171+
}
172+
166173
await commandStore.execute(commandId, undefined, {
167174
subscribe_to_run: false,
168175
trigger_source: 'button'

src/composables/useCoreCommands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import { app } from '@/scripts/app'
3939
import { useDialogService } from '@/services/dialogService'
4040
import { useLitegraphService } from '@/services/litegraphService'
4141
import type { ComfyCommand } from '@/stores/commandStore'
42-
import type { ExecutionTriggerSource } from '@/platform/telemetry/types'
4342
import { useExecutionStore } from '@/stores/executionStore'
4443
import { useHelpCenterStore } from '@/stores/helpCenterStore'
4544
import { useNodeOutputStore } from '@/stores/imagePreviewStore'

0 commit comments

Comments
 (0)