fix
This commit is contained in:
parent
8c09bef1e9
commit
8a01f9ce5d
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user