iron-io / dockerworker

The new IronWorker workflow examples. Test locally, then upload and start queuing jobs!
http://www.iron.io
232 stars 47 forks source link

Node example #4

Closed thousandsofthem closed 9 years ago

thousandsofthem commented 9 years ago

@treeder Note : is that ok - i see difference in param names, --payload vs -payload e.g. Current example is ok but other ones handle only old notation (-payload)

process.argv:  [ 'node',
  '/mnt/task/hello.js',
  '--dir',
  '/mnt/task/',
  '-e',
  'production',
  '--id',
  '54e4b142357434291701641a',
  '--payload',
  '/mnt/task/task_payload.json' ]
treeder commented 9 years ago

@thousandsofthem parameters are going to stay the same as the original now, can you just use the normal node library instead of having the special node_helper.js?

thousandsofthem commented 9 years ago

"normal node library" - what's this?

thousandsofthem commented 9 years ago

https://github.com/iron-io/iron_worker_node/pull/9