Skip to content

Instantly share code, notes, and snippets.

@cjus
Created July 24, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjus/20f6a8aceaf3db4e4e01620e7da96583 to your computer and use it in GitHub Desktop.
Save cjus/20f6a8aceaf3db4e4e01620e7da96583 to your computer and use it in GitHub Desktop.
Job queuing example
async queueAggregatorJob(jobID, status, statusMessage) {
return hydra.queueMessage(hydra.createUMFMessage({
to: 'aggregator-svcs:/',
frm: 'segment-transfer-svcs',
typ: 'process',
bdy: {
jobID,
status,
statusMessage
}
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment