@cumulus-test/common
Common libraries for interacting with Cumulus ingest
Tasks
Cumulus tasks written in node.js should extend Task
to benefit from
the protocol parsing and message interpretation it provides. A minimal task
class is as follows:
const Task = require('@cumulus-test/common/task');
module.exports = class MyTask extends Task {
run() {
return Object.assign({}, this.message, { payload: someOutput });
}
static handler(...args) {
return MyTask.handle(...args);
}
}
Several modules provide support for working with Tasks and the message protocol:
General Utilities