mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(backend): rename BatchManager.process
to _process
Just to make it clear that this is not a method on the ABC.
This commit is contained in:
@ -63,13 +63,13 @@ class BatchManager(BatchManagerBase):
|
|||||||
|
|
||||||
match event_name:
|
match event_name:
|
||||||
case "graph_execution_state_complete":
|
case "graph_execution_state_complete":
|
||||||
await self.process(event, False)
|
await self._process(event, False)
|
||||||
case "invocation_error":
|
case "invocation_error":
|
||||||
await self.process(event, True)
|
await self._process(event, True)
|
||||||
|
|
||||||
return event
|
return event
|
||||||
|
|
||||||
async def process(self, event: Event, err: bool) -> None:
|
async def _process(self, event: Event, err: bool) -> None:
|
||||||
data = event[1]["data"]
|
data = event[1]["data"]
|
||||||
batch_session = self.__batch_process_storage.get_session(data["graph_execution_state_id"])
|
batch_session = self.__batch_process_storage.get_session(data["graph_execution_state_id"])
|
||||||
if not batch_session:
|
if not batch_session:
|
||||||
|
Reference in New Issue
Block a user