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: get_url:
url: "{{ item.browser_download_url }}" url: "{{ item.browser_download_url }}"
dest: "{{ chatbridge_matterbridge_binary }}" 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({ let groups = await groupRepository.find({
select: {name: true} select: {name: true}
}) })
groups.map( logger.info('Got groups to spawn %s', groups)
(group) => this.spawnProcess(group.name)
) for (let group of groups){
await this.spawnProcess(group.name)
}
} }
get processes(): Promise<Process[]> { get processes(): Promise<Process[]> {