mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Add SQLITE_DELAY_FLOAT
setting
This commit is contained in:
parent
b1e7f0eed2
commit
035eeea54c
@ -59,6 +59,12 @@ else:
|
||||
}
|
||||
DATABASE_CONNECTION_STR = f'sqlite at "{DATABASES["default"]["NAME"]}"'
|
||||
|
||||
# the argument to random.expovariate(),
|
||||
# a larger value means less delay
|
||||
# with too little delay, you may see
|
||||
# more "database is locked" errors
|
||||
SQLITE_DELAY_FLOAT = 1.5
|
||||
|
||||
|
||||
DEFAULT_THREADS = 1
|
||||
BACKGROUND_TASK_ASYNC_THREADS = getenv('TUBESYNC_WORKERS', DEFAULT_THREADS, integer=True)
|
||||
|
Loading…
Reference in New Issue
Block a user