Skip to content

Commit d1e03aa

Browse files
tidy(app): remove timing debug logs
1 parent 1bb8edf commit d1e03aa

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

invokeai/app/services/session_queue/session_queue_sqlite.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22
import sqlite3
33
import threading
4-
import time
54
from typing import Optional, Union, cast
65

76
from pydantic_core import to_jsonable_python
@@ -122,16 +121,12 @@ def enqueue_batch(self, queue_id: str, batch: Batch, prepend: bool) -> EnqueueBa
122121
priority = self._get_highest_priority(queue_id) + 1
123122

124123
requested_count = calc_session_count(batch)
125-
# time the prepare_values_to_insert function
126-
time_start = time.time()
127124
values_to_insert = prepare_values_to_insert(
128125
queue_id=queue_id,
129126
batch=batch,
130127
priority=priority,
131128
max_new_queue_items=max_new_queue_items,
132129
)
133-
time_end = time.time()
134-
self.__invoker.services.logger.warning(f"prepare_values_to_insert took {time_end - time_start} seconds")
135130
enqueued_count = len(values_to_insert)
136131

137132
if requested_count > enqueued_count:

0 commit comments

Comments
 (0)