diff --git a/conf/supervisor_worker.conf b/conf/supervisor_worker.conf index af39ec0c..5ca84301 100644 --- a/conf/supervisor_worker.conf +++ b/conf/supervisor_worker.conf @@ -15,7 +15,7 @@ command=python tasks.py autorestart=true priority=900 stopasgroup=true -startsecs = 10 +startsecs = 5 startretries = 100 redirect_stderr=true diff --git a/requirements.txt b/requirements.txt index f35d810b..027c2687 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,7 @@ youtube-search-python==1.6.6 token-bucket==0.3.0 coloredlogs==15.0.1 tronpy==0.4.0 -mnemonic==0.20 +mnemonic==0.21 qrcode==7.4.2 blinker==1.7.0 flask===3.0.0 diff --git a/ytdlbot/utils.py b/ytdlbot/utils.py index 64301c3d..b3a580f0 100644 --- a/ytdlbot/utils.py +++ b/ytdlbot/utils.py @@ -183,7 +183,7 @@ def next_salt_detector(self): def connection_reset_detector(self): text = "Send exception: ConnectionResetError Connection lost" - if text in self.logs: + if self.logs.count(text) >= 5: logging.critical("connection lost: %s ", self.func_name()) return True