Graph is required in batch create

This commit is contained in:
Brandon Rising 2023-08-15 16:13:51 -04:00
parent faa4574970
commit 6cb90e01de
2 changed files with 1 additions and 2 deletions

View File

@ -47,7 +47,7 @@ async def create_session(
},
)
async def create_batch(
graph: Optional[Graph] = Body(default=None, description="The graph to initialize the session with"),
graph: Optional[Graph] = Body(description="The graph to initialize the session with"),
batches: list[Batch] = Body(description="Batch config to apply to the given graph"),
) -> BatchProcessResponse:
"""Creates and starts a new new batch process"""

View File

@ -29,7 +29,6 @@ class SqliteItemStorage(ItemStorageABC, Generic[T]):
self._conn = sqlite3.connect(
self._filename, check_same_thread=False
) # TODO: figure out a better threading solution
# self._conn.execute("pragma journal_mode=wal")
self._cursor = self._conn.cursor()
self._create_table()