hydrus/hydrus/core/HydrusGlobals.py

84 lines
2.1 KiB
Python
Raw Normal View History

2021-07-14 20:42:19 +00:00
import collections
2017-03-02 02:14:56 +00:00
import threading
2015-08-26 21:18:39 +00:00
controller = None
2015-09-16 18:11:00 +00:00
client_controller = None
server_controller = None
test_controller = None
2022-01-19 21:28:59 +00:00
started_shutdown = False
2015-08-26 21:18:39 +00:00
view_shutdown = False
model_shutdown = False
2015-03-25 22:04:19 +00:00
2021-01-27 22:14:03 +00:00
server_action = 'start'
2020-12-09 22:18:48 +00:00
db_journal_mode = 'WAL'
2019-03-06 23:06:22 +00:00
no_db_temp_files = False
2020-12-09 22:18:48 +00:00
2020-12-16 22:29:51 +00:00
boot_debug = False
2021-12-08 22:40:59 +00:00
db_cache_size = 256
2021-04-20 22:01:22 +00:00
db_transaction_commit_period = 30
2020-12-23 23:07:58 +00:00
2020-12-09 22:18:48 +00:00
# if this is set to 1, transactions are not immediately synced to the journal so multiple can be undone following a power-loss
# if set to 2, all transactions are synced, so once a new one starts you know the last one is on disk
# corruption cannot occur either way, but since we have multiple ATTACH dbs with diff journals, let's not mess around when power-cut during heavy file import or w/e
db_synchronous = 2
2019-03-06 23:06:22 +00:00
2018-02-07 23:40:33 +00:00
import_folders_running = False
2018-03-14 21:01:02 +00:00
export_folders_running = False
2017-12-13 22:33:07 +00:00
2021-07-14 20:42:19 +00:00
profile_mode = False
db_profile_min_job_time_ms = 16
callto_profile_min_job_time_ms = 10
server_profile_min_job_time_ms = 10
2021-07-14 20:42:19 +00:00
menu_profile_min_job_time_ms = 16
pubsub_profile_min_job_time_ms = 5
ui_timer_profile_min_job_time_ms = 5
2021-12-22 22:31:23 +00:00
macos_antiflicker_test = False
2021-07-14 20:42:19 +00:00
2021-08-11 21:14:12 +00:00
query_planner_mode = False
query_planner_start_time = 0
query_planner_query_count = 0
2021-08-18 21:10:01 +00:00
queries_planned = set()
2021-07-14 20:42:19 +00:00
profile_start_time = 0
profile_slow_count = 0
profile_fast_count = 0
profile_counter_lock = threading.Lock()
canvas_tile_outline_mode = False
2020-04-08 21:10:11 +00:00
db_ui_hang_relief_mode = False
2017-06-21 21:15:59 +00:00
callto_report_mode = False
2016-12-28 22:24:52 +00:00
db_report_mode = False
2018-09-12 21:36:26 +00:00
file_report_mode = False
2018-10-03 21:00:15 +00:00
media_load_report_mode = False
2017-05-03 21:33:48 +00:00
gui_report_mode = False
2018-03-22 00:03:33 +00:00
shortcut_report_mode = False
2021-05-05 20:12:11 +00:00
cache_report_mode = False
2019-02-13 22:26:43 +00:00
subprocess_report_mode = False
2018-04-05 01:22:26 +00:00
subscription_report_mode = False
2018-01-17 22:52:10 +00:00
hover_window_report_mode = False
2019-07-10 22:38:30 +00:00
file_import_report_mode = False
2019-07-17 22:10:19 +00:00
phash_generation_report_mode = False
2017-08-16 21:58:06 +00:00
network_report_mode = False
2019-01-23 22:19:16 +00:00
pubsub_report_mode = False
2017-12-13 22:33:07 +00:00
daemon_report_mode = False
mpv_report_mode = False
2016-01-13 22:08:19 +00:00
force_idle_mode = False
2017-08-23 21:34:25 +00:00
no_page_limit_mode = False
2018-08-08 20:29:54 +00:00
thumbnail_debug_mode = False
2023-02-22 21:57:10 +00:00
autocomplete_delay_mode = False
2015-12-16 22:41:06 +00:00
2016-01-13 22:08:19 +00:00
do_idle_shutdown_work = False
2015-12-16 22:41:06 +00:00
shutdown_complete = False
restart = False
2016-06-29 19:55:46 +00:00
2017-10-25 21:45:15 +00:00
twisted_is_broke = False
2017-03-02 02:14:56 +00:00
dirty_object_lock = threading.Lock()
2021-05-27 00:09:06 +00:00
client_busy = threading.Lock()
2019-10-09 22:03:03 +00:00
server_busy = threading.Lock()