diff --git a/execution.py b/execution.py index fd91e684a..d543d0e7a 100644 --- a/execution.py +++ b/execution.py @@ -56,6 +56,8 @@ class QueueItem: """ queue_tuple: QueueTuple completed: asyncio.Future | None + def __lt__(self, other: QueueItem): + return self.queue_tuple[0] < other.queue_tuple[0] def get_input_data(inputs, class_def, unique_id, outputs={}, prompt={}, extra_data={}):