Compare commits

..

No commits in common. "6401a40f11f36b376eea982c174baee5c6032d25" and "32197fd6995681d7dc69858168174464abf10e2a" have entirely different histories.

View File

@ -34,10 +34,11 @@ 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
print(f'terminating process for {project_name} {bot_name}') if process.is_alive:
process.terminate() print(f'terminating process for {project_name} {bot_name}')
self.telegram_pollers[project_name][bot_name] = None process.terminate()
print(f'terminated process for {project_name} {bot_name}') self.telegram_pollers[project_name][bot_name] = None
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):