Compare commits

...

2 Commits

Author SHA1 Message Date
6401a40f11 Merge pull request 'fix' (#8) from master into dev
Reviewed-on: #8
2024-11-27 04:32:35 +03:00
8a01f9ce5d 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
2024-11-27 04:32:17 +03:00

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):