Skip to content
Jade Meskill edited this page Mar 31, 2016 · 2 revisions

Job Manager makes it easy for node.js applications to submit jobs to Meshblu Core. Job Manager will assign a responseId, submit the job to Redis, block until the response has been generated by Meshblu Core and call the callback with the response.

Example

options =
  metadata:
    jobType: 'GetStatus'

@jobManager.do 'request', 'response', options, (error, jobResponse) =>
  res.status(jobResponse.metadata.code).send(JSON.parse jobResponse.rawData)

See octoblu/meshblu-core-job-manager for the current implementation.

Clone this wiki locally