fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 5s
Deploy Dev / Push (pull_request) Successful in 8s
Deploy Dev / Deploy dev (pull_request) Successful in 8s

This commit is contained in:
emmatveev 2024-11-27 04:32:17 +03:00
parent 8c09bef1e9
commit 8a01f9ce5d

View File

@ -34,11 +34,10 @@ class Daemon(base.Daemon):
if process is None or not process.is_alive: if process is None or not process.is_alive:
print(f'process for {project_name} {bot_name} is not alive') print(f'process for {project_name} {bot_name} is not alive')
continue continue
if process.is_alive: print(f'terminating process for {project_name} {bot_name}')
print(f'terminating process for {project_name} {bot_name}') process.terminate()
process.terminate() self.telegram_pollers[project_name][bot_name] = None
self.telegram_pollers[project_name][bot_name] = None print(f'terminated process for {project_name} {bot_name}')
print(f'terminated process for {project_name} {bot_name}')
time.sleep(10) time.sleep(10)
def start_polling(self, telegram_token, queue): def start_polling(self, telegram_token, queue):