node-js-libs / node.io

MIT License
1.8k stars 140 forks source link

Running multiple Node.io jobs from CLI with Mongoose.js #128

Closed gfranko closed 12 years ago

gfranko commented 12 years ago

Hey @chriso I have a few quick questions:

How to use Mongoose.js with Node.io via the Command Line

When I run my Node.io scraper job from the command line and then try to save the results to MongoDB using Mongoose (the popular third-party library from LearnBoost), the process seems to be exiting before the data is saved. On the other hand, if I programmatically run my Node.io scraper job with a Express.js server and the Node.io start() method, then the process does not exit early and the scraping data is saved to the database. Do you know why there is a different behavior between the CLI and Web interfaces?

Running multiple Node.io Jobs

Also, is there a way to run multiple Node.io Jobs at once from the command line?

I really appreciate your help! Thank you!

gfranko commented 12 years ago

Nevermind I got my jobs to run via the command line using the start method.