If your job can be executed in shell, crontab is a choice.
Other wise, if your job is a function, use some scheduler module or
setInterval intead.
Pomelo-scheduler is originally a module of pomelo framework, it is quite
efficient, and the usage is similiar to crontab.
https://github.com/NetEase/pomelo-scheduler


On Tue, Apr 9, 2013 at 1:23 AM, Azer Koçulu <[email protected]> wrote:

> shell-jobs is what you're looking for: http://github.com/azer/shell-jobs
>
> I personally use it for 2 months and it works seamlessly
>
>
> On Saturday, April 6, 2013, Michael Nisi wrote:
>
>> You should listen to Pedro.
>> —
>> Sent from Mailbox <https://bit.ly/SZvoJe> for iPhone
>>
>>
>> On Sat, Apr 6, 2013 at 3:06 PM, Pedro Teixeira 
>> <[email protected]>wrote:
>>
>>  My advise is to not mix those waters.
>> Use the simplest script you can and put it on cron if that fits.
>> If you need a job queue and workers, use kue or:
>> Code your custom queue consumer using that + core cluster.
>> Lots of options here depending on needs, load and scheduling.
>>
>> --
>> Pedro
>>
>> On Saturday, 6 de April de 2013 at 14:00, Michael Nisi wrote:
>>
>> You could use setInterval.
>>
>> Like here for exampe:
>> https://github.com/michaelnisi/troubled-www/blob/master/updater.js
>>
>> On Sat, Apr 6, 2013 at 2:37 AM, Daniel Rinehart <[email protected]>
>> wrote:
>>
>> You might want to look at: https://github.com/mattpat/node-schedule
>>
>>
>> -- Daniel R. <[email protected]> [http://danielr.neophi.com/]
>>
>>
>> On Fri, Apr 5, 2013 at 9:15 AM, Jatin Patel <[email protected]>
>> wrote:
>>
>>
>> Essentially, it's a set of complex calculation that needs to be done every
>> 10 minutes. Every 10 minutes, it would go and check for specific info
>> (updated) in the db and then do the complex calculation. I didn't wanted
>> to
>> use setTimeout() as I thought it wasn't ideal way to handle this -
>> something
>> like Quartz would be great.
>>
>> Thanks-
>>
>> On Thursday, April 4, 2013 11:30:35 PM UTC-4, psema4 wrote:
>>
>>
>> On Thu, Apr 4, 2013 at 10:47 PM, Jatin Patel <[email protected]> wrote:
>>
>> Hi, I'm looking for a simple way to create a job and then execute that
>> job
>> after some delay time.
>>
>>
>> What kind of job? If your job is essentially a function, there's
>> setTimeout()
>>
>> --
>> Scott Elcomb
>>  @psema4 on Twitter / Identi.ca / Github & more
>>
>> Atomic OS: Self Contained Microsystems
>> http://code.google.com/p/atomos/
>>
>> Member of the Pirate Party of Canada
>> http://www.pirateparty.ca/
>>
>>
>> --
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to nodejs+unsubscribe@googlegroup
>>
>>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to