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

Code Engine: Support for process.argv #52

Open
marusshi opened this issue Nov 20, 2018 · 0 comments
Open

Code Engine: Support for process.argv #52

marusshi opened this issue Nov 20, 2018 · 0 comments

Comments

@marusshi
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
For the IoT benchmarks, we want to be able to easily vary the rate at which the spout node emits the data.

Currently, we can edit the setInterval rate in the source code, but this requires multiple "versions" of the same code with different setInterval rates.

Describe the solution you'd like
Something akin to process.argv for Code Engine that would allow the code to be more reusable, e.g. a CodeEngine.runCode equivalent of:

> node SenMLSpout.js 3000 : emit data at a rate of 3s

Describe alternatives you've considered
Just alter source code

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

No branches or pull requests

1 participant