actually awaiting spawning the process

This commit is contained in:
sneakers-the-rat 2023-08-08 17:33:38 -07:00
parent 895ddfbfa5
commit 391bb0b2d0
2 changed files with 12 additions and 3 deletions

View File

@ -13,3 +13,9 @@
get_url:
url: "{{ item.browser_download_url }}"
dest: "{{ chatbridge_matterbridge_binary }}"
- name: Enable execution by matterbridge user
file:
path: "{{ chatbridge_matterbridge_binary }}"
mode: '744'
owner: "{{ chatbridge_user }}"

View File

@ -113,9 +113,12 @@ class MatterbridgeManager {
let groups = await groupRepository.find({
select: {name: true}
})
groups.map(
(group) => this.spawnProcess(group.name)
)
logger.info('Got groups to spawn %s', groups)
for (let group of groups){
await this.spawnProcess(group.name)
}
}
get processes(): Promise<Process[]> {