Repos / pytaku / 1778b8d135
commit 1778b8d1357a303aacfcc250c9068325474796ba
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Sat Aug 8 02:41:38 2020 +0700
run update title task less rapidly
Eventually this should be configurable via CLI args.
Too lazy to do that now.
diff --git a/pyproject.toml b/pyproject.toml
index 680d4a2..2dafa4e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pytaku"
-version = "0.1.8"
+version = "0.1.9"
description = ""
authors = ["Bùi Thành Nhân <hi@imnhan.com>"]
license = "AGPL-3.0-only"
diff --git a/src/pytaku/scheduler.py b/src/pytaku/scheduler.py
index 5c7176d..69aa702 100644
--- a/src/pytaku/scheduler.py
+++ b/src/pytaku/scheduler.py
@@ -37,7 +37,7 @@ def after_run(self):
class UpdateOutdatedSeries(Worker):
- interval = timedelta(seconds=9)
+ interval = timedelta(hours=2)
def run(self):
for title in find_outdated_titles():