fix
This commit is contained in:
@@ -26,10 +26,10 @@ class Daemon(base.Daemon):
|
||||
print(f'process for {project_name} {bot_name} is alive')
|
||||
continue
|
||||
new_process = multiprocessing.Process(target=self.start_polling, args=[bot_info['secrets']['telegram_token'], bot_info['queue']])
|
||||
print(f'starting process for {project_name} {bot_name} is alive')
|
||||
print(f'starting process for {project_name} {bot_name}')
|
||||
new_process.start()
|
||||
self.telegram_pollers[project_name][bot_name] = new_process
|
||||
print(f'started process for {project_name} {bot_name} is alive')
|
||||
print(f'started process for {project_name} {bot_name}')
|
||||
else:
|
||||
if process is None or not process.is_alive:
|
||||
print(f'process for {project_name} {bot_name} is not alive')
|
||||
|
||||
Reference in New Issue
Block a user