-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconst.py
33 lines (23 loc) · 901 Bytes
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#################################### setting ####################################
NORMAL_COLOR = "\033[0;37;40m"
TASK_COLOR = "\033[1;32;40m"
WORKER_COLOR = "\033[1;33;40m"
ALERT_COLOR = "\033[5;36;40m"
STATUS_COLOR = "\033[1;34;47m"
STATUS_COLOR = ""
NORMAL_COLOR = ""
KiB = 1024
MiB = 1024 * KiB
GiB = 1024 * MiB
TiB = 1024 * GiB
#################################### task #####################################
WORKER_STOP_COMMAND = "WORKER_COMMAND_CLOSE"
TASK_FORMAT_SEPARATOR = ":"
#################################### redis #####################################
REDIS_KEY_TODO_TASKS = "todo_tasks"
REDIS_KEY_IN_PROGRESS_TASKS = "in_progress_tasks"
REDIS_KEY_FAILED_TASKS = "failed_tasks"
REDIS_KEY_FINISHED_TASKS = "finished_tasks"
REDIS_KEY_TASK_FAIL_REASON = "task_fail_reason"
#################################### other #####################################
CONFIG_PATH = "conf.json"