TritonDataCenter / node-workflow

Task orchestration, creation and running using NodeJS
MIT License
456 stars 66 forks source link

/node-workflow/lib/job-runner.js:426 job.onerror_results.push({ #120

Open cjonagam opened 10 years ago

cjonagam commented 10 years ago

Then i'm getting following error after the workflow execution is complete.

                /home/gse/dev/node-workflow/lib/job-runner.js:426
                          job.onerror_results.push({
                                    ^
          TypeError: Object [] has no method 'push'
                  at null.<anonymous> (/home/gse/dev/node-workflow/lib/job-runner.js:426:41)
                  at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
kusor commented 10 years ago

I'm not following you, sorry. When you add it to...? Mind to elaborate a little bit more and provide details about the failure?

cjonagam commented 10 years ago

kusor, thanks for responding. i have updated the issue with more details

gepser commented 9 years ago

Is this still an issue? @cjonagam update if you still have problems with this and I'll try to help you.

cjonagam commented 9 years ago

This issue is still open. I could not find any solutions.

gepser commented 9 years ago

Let me try to understand your problem, you want to run the workflow from the API or from the runner? I understand that you want the API mode but just checking.

cjonagam commented 9 years ago

i would like to make it work on runner. Error is with both api and runner

gepser commented 9 years ago

Well, in order to make it work with the runner you need to type this in a terminal: **./node_modules/.bin/workflow-runner config.json 2>&1 | ./node_modules/.bin/bunyan**

then you have to run your .js file, in the case of the example should be the module.js file. **node module.js githubUser githubPass**

of course before everything you need to have your redis-server running (if you are doing it with redis).

try doing this with this files (module.js and shared-workflow.js) and give me the feedback in order to help you. https://github.com/kusor/node-workflow-example/

if you want me to help you more easily give me your skype or gmail user and I'll do my best to help you.