Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New C++ MeasureManager #279

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

New C++ MeasureManager #279

wants to merge 7 commits into from

Conversation

jmarrec
Copy link
Contributor

@jmarrec jmarrec commented Nov 14, 2024

To only see what I changed after the rebase, the easiest is to go to this PR with comment: jmarrec#1 (review)

You can also just see the last commit: 5a8afe4#diff-fd4f239e9d2dc98194dc1b38ef8202d67ccdd7b75d94a3a32c32c8cd301d0b0cL62-L64

vm.$log.info('Start Measure Manager Server: ', vm.cliPath, ' measure -s ', vm.port);
vm.cli = vm.spawn(vm.cliPath, ['classic', 'measure', '-s', vm.port]);
vm.$log.info('Start Measure Manager Server: ', vm.cliPath, 'measure -s ', vm.port);
vm.cli = vm.spawn(vm.cliPath, ['measure', '-s', vm.port], { cwd: '.', stdio : 'pipe' });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether the { cwd: '.', stdio : 'pipe' } is needed, it was in #267

Comment on lines +102 to +105
// C++ CLI printing errors when requests fail on stderr, eg when post
// data is missing:
// [2024-11-14T13:32:17+01:00] "POST /compute_arguments HTTP/1.1" 400
vm.$log.error(`MeasureManager: ${data}`);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what's wanted here

Comment on lines +117 to +126
vm.cli.on('exit', (code) => {
if (code !== 0) {
const msg = `Failed with code = ${code}`;
console.log(msg);
}
});

}).catch((err) => {
vm.$log.error('Error locating an open port for measure manager.');
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kept from #267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants