master #16

Merged
emmatveev merged 15 commits from master into prod 2024-11-27 18:44:05 +03:00
Showing only changes of commit 8a01f9ce5d - Show all commits

View File

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