Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Batch jobs in Node
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Guilherme Pim  
View profile  
 More options Oct 5 2012, 6:08 am
From: Guilherme Pim <pimguilhe...@gmail.com>
Date: Fri, 5 Oct 2012 07:08:43 -0300
Local: Fri, Oct 5 2012 6:08 am
Subject: Batch jobs in Node

Hi guys,

Having the need to synchronize some data with external sources, I have
written some tasks on Grunt to do so. I wonder if Grunt is actually the
tool to write batch jobs in, or there actually is some other alternative.

I have come across Node.io, but I rather stick to Grunt in this case. Do
you guys know about some alternatives, please?

Thanks!
Guilherme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nuno Job  
View profile  
 More options Oct 5 2012, 6:30 am
From: Nuno Job <nunojobpi...@gmail.com>
Date: Fri, 5 Oct 2012 11:29:53 +0100
Local: Fri, Oct 5 2012 6:29 am
Subject: Re: [nodejs] Batch jobs in Node

Can you share some more details on what you are trying to accomplish?

You have talked about tools (both of which I am unaware of) and said
"batch", but apart from that there wasn't much more that could help anyone
make an informed suggestion.

Let me know, I'll try to help :)
Nuno

On Fri, Oct 5, 2012 at 11:08 AM, Guilherme Pim <pimguilhe...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guilherme Pim  
View profile  
 More options Oct 5 2012, 7:22 am
From: Guilherme Pim <pimguilhe...@gmail.com>
Date: Fri, 5 Oct 2012 08:22:12 -0300
Local: Fri, Oct 5 2012 7:22 am
Subject: Re: [nodejs] Batch jobs in Node

Okay, my bad!

I am crawling some web pages to populate a database, and currently doing
that with Grunt (http://gruntjs.com/), which is a task-based 'build tool'
(that gets me confused, is it supposed to solely build?).

So, I have created some scripts in the following manner:

========== Task file ==========

module.exports = function (grunt) {

    grunt.registerTask('courses/update-info', 'Updates all courses info on
the database', ... )

}

============================

So then I may have a somewhat controlled access to these jobs from the
terminal, with ability to list all existing jobs and their descriptions.
Also, I may pass some parameters to each task, although it's not very
readable because they can't be associated with a name:

grunt courses/update-info:4:5:2 (these will be passed as the tasks's
function arguments)

I guess I could go about creating node scripts and using a parameters
library along with console colors and stuff, but I would rather find a
framework, if such exists.

Did I make myself clearer at all? haha

Thanks for you time,
Guilherme

2012/10/5 Nuno Job <nunojobpi...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
greelgorke  
View profile  
 More options Oct 5 2012, 8:40 am
From: greelgorke <greelgo...@gmail.com>
Date: Fri, 5 Oct 2012 05:40:21 -0700 (PDT)
Local: Fri, Oct 5 2012 8:40 am
Subject: Re: [nodejs] Batch jobs in Node

use registerMultiTask.

define your websites in the main gruntfile.

may be a better way is to use plain node script for it.

Am Freitag, 5. Oktober 2012 13:22:21 UTC+2 schrieb Guilherme Pim:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ted Young  
View profile  
 More options Oct 11 2012, 4:52 pm
From: Ted Young <t...@radicaldesigns.org>
Date: Thu, 11 Oct 2012 13:52:05 -0700
Local: Thurs, Oct 11 2012 4:52 pm
Subject: Re: [nodejs] Batch jobs in Node

Sounds like you just want a node service that does the scraping, and provides an http api for adding tasks and querying what tasks are currently running.  Then have a separate command-line app that can talk to the web service.  And maybe also an express app that can talk to it via a browser.  I use that pattern a lot, but haven't yet written an abstraction for it.  An abstraction for easily banging out command-line apps with tab-complete, etc that just talk to web services would be a useful thingie though.

I'm not sure if there's a generic node-based job-processor out there, but you might like https://github.com/defunkt/resque.  It's ruby, but each job could just be a system call to start a node process.

Ted

On Oct 5, 2012, at 4:22 AM, Guilherme Pim <pimguilhe...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ted Young  
View profile  
 More options Oct 11 2012, 5:36 pm
From: Ted Young <t...@radicaldesigns.org>
Date: Thu, 11 Oct 2012 14:36:23 -0700
Local: Thurs, Oct 11 2012 5:36 pm
Subject: Re: [nodejs] Batch jobs in Node

Actually, kue looks like a resque-like thing: http://learnboost.github.com/kue/

Ted

On Oct 11, 2012, at 1:52 PM, Ted Young <t...@radicaldesigns.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »