electrode-ota-server-service-worker
v4.8.4
Published
Electrode OTA service worker
Downloads
29
Readme
electrode-ota-service-worker
Creates a worker process that summarizes the metrics and places them into the metrics-summary
table.
Usage
In your OTA Manager config, add this module as a plugin.
{
"plugins": {
"electrode-ota-server-service-worker": {
"options": {
"numberWorkers": 1,
"workerSleep": 300,
"logging": "error"
}
}
}
}
The options are
- numberWorkers: Number of workers to fork (default 1)
- workerSleep: Time in seconds for the worker to sleep between updates (default 300 sec)
- logging: Specifies the logging level (default "error"). Value values ["error", "info", "debug"].
Contributing
To run tests and coverage
% yarn
% yarn coverage
To run tests only
% yarn test