Veiko Aasa 04b9538deb
plinth: Increase sqlite busy timeout from default 5s to 30s
Reduces the probability that plinth gives an error 500 because
the database is locked.

Test performed:
1) Lock the database:
> sqlite3 data/var/lib/plinth/plinth.sqlite3
sqlite> PRAGMA locking_mode = EXCLUSIVE;
sqlite> BEGIN EXCLUSIVE;
2) Visit plinth/apps/
3) Only after 30s plinth logs an exception:
django.db.utils.OperationalError: database is locked

Closes #1786
Related to #1443

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil: Move the timeout value to settings module as it is static]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-03-04 19:42:58 -08:00
..
2020-03-04 23:32:52 +01:00
2020-02-19 14:38:55 +02:00
2020-02-24 20:17:01 -05:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:38:55 +02:00
2020-02-24 12:36:41 -05:00
2020-02-19 14:38:55 +02:00