mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
add django_huey, huey_monitor, and replace Threads with huey tasks
This commit is contained in:
parent
4df90fbb40
commit
60154fba5f
19 changed files with 850 additions and 92 deletions
18
archivebox/queues/settings.py
Normal file
18
archivebox/queues/settings.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from pathlib import Path
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
OUTPUT_DIR = settings.CONFIG.OUTPUT_DIR
|
||||
LOGS_DIR = settings.CONFIG.LOGS_DIR
|
||||
|
||||
TMP_DIR = OUTPUT_DIR / "tmp"
|
||||
|
||||
Path.mkdir(TMP_DIR, exist_ok=True)
|
||||
|
||||
|
||||
CONFIG_FILE = TMP_DIR / "supervisord.conf"
|
||||
PID_FILE = TMP_DIR / "supervisord.pid"
|
||||
SOCK_FILE = TMP_DIR / "supervisord.sock"
|
||||
LOG_FILE = TMP_DIR / "supervisord.log"
|
||||
WORKER_DIR = TMP_DIR / "workers"
|
Loading…
Add table
Add a link
Reference in a new issue