Skip to content

Commit

Permalink
tidy(app): remove timing debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Feb 26, 2025
1 parent 1bb8edf commit d1e03aa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions invokeai/app/services/session_queue/session_queue_sqlite.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
import sqlite3
import threading
import time
from typing import Optional, Union, cast

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

requested_count = calc_session_count(batch)
# time the prepare_values_to_insert function
time_start = time.time()
values_to_insert = prepare_values_to_insert(
queue_id=queue_id,
batch=batch,
priority=priority,
max_new_queue_items=max_new_queue_items,
)
time_end = time.time()
self.__invoker.services.logger.warning(f"prepare_values_to_insert took {time_end - time_start} seconds")
enqueued_count = len(values_to_insert)

if requested_count > enqueued_count:
Expand Down

0 comments on commit d1e03aa

Please sign in to comment.