mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Turn off WAL mode
This commit is contained in:
parent
cc5755d5b1
commit
faa4574970
@ -18,12 +18,12 @@ from invokeai.app.invocations.baseinvocation import (
|
||||
from invokeai.app.services.graph import Graph
|
||||
from invokeai.app.models.image import ImageField
|
||||
|
||||
from pydantic import BaseModel, Field, Extra, parse_raw_as
|
||||
from pydantic import BaseModel, Field, Extra, parse_raw_as, StrictStr, StrictInt, StrictFloat
|
||||
|
||||
invocations = BaseInvocation.get_invocations()
|
||||
InvocationsUnion = Union[invocations] # type: ignore
|
||||
|
||||
BatchDataType = Union[StrictStr, StrictInt, StrictFloat, ImageField]```
|
||||
BatchDataType = Union[StrictStr, StrictInt, StrictFloat, ImageField]
|
||||
|
||||
|
||||
class Batch(BaseModel):
|
||||
|
@ -29,7 +29,7 @@ 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._conn.execute("pragma journal_mode=wal")
|
||||
self._cursor = self._conn.cursor()
|
||||
|
||||
self._create_table()
|
||||
|
Loading…
Reference in New Issue
Block a user