Skip to content

Commit 0cdf7a7

Browse files
Revert "experiment(app): simulate very long enqueue operations (15s)"
This reverts commit eb6a323.
1 parent 4198548 commit 0cdf7a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

invokeai/app/services/session_queue/session_queue_sqlite.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import json
33
import sqlite3
44
import threading
5-
from time import sleep
65
from typing import Optional, Union, cast
76

87
from pydantic_core import to_jsonable_python
@@ -116,8 +115,6 @@ def _enqueue_batch(self, queue_id: str, batch: Batch, prepend: bool) -> EnqueueB
116115
max_queue_size = self.__invoker.services.configuration.max_queue_size
117116
max_new_queue_items = max_queue_size - current_queue_size
118117

119-
sleep(15) # Simulate a slow operation
120-
121118
priority = 0
122119
if prepend:
123120
priority = self._get_highest_priority(queue_id) + 1

0 commit comments

Comments
 (0)