Skip to content

Commit

Permalink
new: expose expire_results in the config, allowing to remove results …
Browse files Browse the repository at this point in the history
…from DB faster
  • Loading branch information
Rafiot committed Nov 12, 2024
1 parent 3716ca1 commit dca39c8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 28 deletions.
1 change: 1 addition & 0 deletions config/generic.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"systemd_service_name": "lacus",
"concurrent_captures": 2,
"max_capture_time": 3600,
"expire_results": 36000,
"max_retries": 3,
"only_global_lookups": true,
"tor_proxy": {
Expand Down
1 change: 1 addition & 0 deletions lacus/lacus.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(self) -> None:
only_global_lookups=get_config('generic', 'only_global_lookups'),
loglevel=get_config('generic', 'loglevel'),
max_capture_time=get_config('generic', 'max_capture_time'),
expire_results=get_config('generic', 'expire_results'),
max_retries=get_config('generic', 'max_retries')
)

Expand Down
54 changes: 27 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ redis = {version = "^5.2.0", extras = ["hiredis"]}
flask-restx = "^1.3.0"
werkzeug = "^3.1.3"
gunicorn = {version = "^23.0.0", extras = ["setproctitle"]}
lacuscore = "^1.12.2"
lacuscore = "^1.12.3"
rich = "^13.9.4"
psutil = "^6.1.0"

Expand Down

0 comments on commit dca39c8

Please sign in to comment.