Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Background and scheduled jobs..
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
  12 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
 
Tim Uckun  
View profile  
 More options Nov 16 2008, 6:45 pm
From: "Tim Uckun" <timuc...@gmail.com>
Date: Mon, 17 Nov 2008 12:45:42 +1300
Local: Sun, Nov 16 2008 6:45 pm
Subject: Background and scheduled jobs..
What are you guys using for background and scheduled tasks?

the rufus gems seems really cool for scheduled tasks and there are at
least a half a dozen projects for background tasks.  Does anybody have
any experience with any of these?


    Reply to author    Forward  
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.
Aries Andrada  
View profile  
 More options Nov 16 2008, 6:54 pm
From: "Aries Andrada" <aries.andr...@gmail.com>
Date: Mon, 17 Nov 2008 07:54:38 +0800
Local: Sun, Nov 16 2008 6:54 pm
Subject: Re: [WellRailed] Background and scheduled jobs..

Hi Tim,
What we do in some of our projects is we create rake tasks then run them as
cron jobs. So far, it has served our needs well. Hope this helps.

Regards.

Aries


    Reply to author    Forward  
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.
nahum  
View profile  
 More options Nov 16 2008, 6:59 pm
From: nahum <nahum.w...@gmail.com>
Date: Sun, 16 Nov 2008 15:59:13 -0800 (PST)
Local: Sun, Nov 16 2008 6:59 pm
Subject: Re: Background and scheduled jobs..
Don't use BackgroundRB, it's too much of a pain and each worker uses
the resources of a full rails app instance - ie mongrel.

You'd be surprised how far cron+rake can take you.

Nahum

On Nov 17, 12:54 pm, "Aries Andrada" <aries.andr...@gmail.com> wrote:


    Reply to author    Forward  
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.
Cyrille  
View profile  
 More options Nov 16 2008, 8:36 pm
From: Cyrille <cbonne...@gmail.com>
Date: Sun, 16 Nov 2008 17:36:51 -0800 (PST)
Local: Sun, Nov 16 2008 8:36 pm
Subject: Re: Background and scheduled jobs..
We also use rake tasks, run from cron jobs: much simpler to manage.
You don't have to worry about if your BackgroundRb is running or
not...

Cyrille

On Nov 17, 12:59 pm, nahum <nahum.w...@gmail.com> wrote:


    Reply to author    Forward  
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.
Tim Uckun  
View profile  
 More options Nov 16 2008, 10:08 pm
From: "Tim Uckun" <timuc...@gmail.com>
Date: Mon, 17 Nov 2008 16:08:33 +1300
Local: Sun, Nov 16 2008 10:08 pm
Subject: Re: [WellRailed] Re: Background and scheduled jobs..

On Mon, Nov 17, 2008 at 2:36 PM, Cyrille <cbonne...@gmail.com> wrote:

> We also use rake tasks, run from cron jobs: much simpler to manage.
> You don't have to worry about if your BackgroundRb is running or
> not...

So how do you deal with background tasks? I have read that simply
firing off a thread or attempting to fork is not a good way to go.

This one looks pretty decent and lightweight.

http://codeforpeople.rubyforge.org/svn/bj/trunk/README


    Reply to author    Forward  
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.
Will Bryant  
View profile  
 More options Nov 16 2008, 11:52 pm
From: "Will Bryant" <will.bry...@gmail.com>
Date: Mon, 17 Nov 2008 17:52:23 +1300
Local: Sun, Nov 16 2008 11:52 pm
Subject: Re: [WellRailed] Background and scheduled jobs..

On Mon, Nov 17, 2008 at 12:45 PM, Tim Uckun <timuc...@gmail.com> wrote:

> What are you guys using for background and scheduled tasks?

I currently recommend, depending on what semantics you need:

   - Rake with cron for scheduled tasks.
   - Spawn for things that you want to split off from your apps on your
   appservers (eg. processing credit card payments against a remote gateway).
   - BackgroundRb for jobs you want to start remotely where you need to
   ensure only one runs at once (eg. running a slow reconciliation job for
   admins remotely).
   - Workling for queues.


    Reply to author    Forward  
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.
barnacle  
View profile  
 More options Nov 17 2008, 12:54 pm
From: barnacle <barnaclebar...@gmail.com>
Date: Mon, 17 Nov 2008 09:54:23 -0800 (PST)
Local: Mon, Nov 17 2008 12:54 pm
Subject: Re: Background and scheduled jobs..
Railscasts Episodes 127-130 go over various ways of running background
tasks. Check them out here - http://railscasts.com/

Glen

On Nov 17, 12:45 pm, "Tim Uckun" <timuc...@gmail.com> wrote:


    Reply to author    Forward  
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.
Tim Uckun  
View profile  
 More options Nov 18 2008, 4:40 pm
From: "Tim Uckun" <timuc...@gmail.com>
Date: Wed, 19 Nov 2008 10:40:45 +1300
Local: Tues, Nov 18 2008 4:40 pm
Subject: Re: [WellRailed] Re: Background and scheduled jobs..

On Tue, Nov 18, 2008 at 6:54 AM, barnacle <barnaclebar...@gmail.com> wrote:

> Railscasts Episodes 127-130 go over various ways of running background
> tasks. Check them out here - http://railscasts.com/

Wow lots of cool stuff there.

I'll watch a bunch of them tonight.


    Reply to author    Forward  
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.
Gordon Anderson  
View profile  
 More options Nov 3, 9:18 pm
From: Gordon Anderson <gordon.b.ander...@gmail.com>
Date: Wed, 4 Nov 2009 09:18:26 +0700
Local: Tues, Nov 3 2009 9:18 pm
Subject: Re: [WellRailed] Re: Background and scheduled jobs..
hi

Old thread, I know :)

Just came upon this, about how the github deal with the issue of
background tasks

http://github.com/blog/542-introducing-resque

Cheers

Gordon


    Reply    Reply to author    Forward  
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.
nahum  
View profile  
 More options Nov 3, 10:13 pm
From: nahum <nahum.w...@gmail.com>
Date: Tue, 3 Nov 2009 19:13:40 -0800 (PST)
Local: Tues, Nov 3 2009 10:13 pm
Subject: Re: Background and scheduled jobs..
It's a really good read and very interesting to find out that've
they've tried most of the main suspects.  In the blog entry explain
what they liked and didn't about each.

nahum.

On Nov 4, 3:18 pm, Gordon Anderson <gordon.b.ander...@gmail.com>
wrote:


    Reply    Reply to author    Forward  
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.
Tim Uckun  
View profile  
 More options Nov 4, 3:46 pm
From: Tim Uckun <timuc...@gmail.com>
Date: Thu, 5 Nov 2009 09:46:52 +1300
Local: Wed, Nov 4 2009 3:46 pm
Subject: Re: [WellRailed] Re: Background and scheduled jobs..

> Just came upon this, about how the github deal with the issue of
> background tasks

Our needs were much simpler and a little more specific so I rolled my
own. Basically it consists of a daemon you "poke" with a UDP packet
which contains a tiny bit of information like the type and the
database ID. The daemon pulls the record from the database and then
instantiates the object and calls the method specified in record with
the params in the record.

The thing that was different for me was the integration of
rufus-scheduler. I have a table called "scheduled_tasks" which
describe the job to be run and the schedule to run them. When the
model updates the record it poked the daemon which schedules the job.
The scheduled task simply creates a job record when the time is right
(related to the scheduled_)task) and pokes the daemon again which runs
the job.

This allows me to keep scheduled tasks on a per client basis and also
allows me to store the result every run of a scheduled task.

The daemon is written with eventmachine.

So far it's worked OK. No major problems for the volume of tasks I am running.

If I had a massive workload I would definitely look at gearman though.
http://gearman.org/

The nice thing about gearman is that you can run multiple gearman
instances so you have no single point of failure.


    Reply    Reply to author    Forward  
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.
Tim Uckun  
View profile  
 More options Nov 4, 3:52 pm
From: Tim Uckun <timuc...@gmail.com>
Date: Thu, 5 Nov 2009 09:52:36 +1300
Local: Wed, Nov 4 2009 3:52 pm
Subject: Re: [WellRailed] Re: Background and scheduled jobs..
BTW here is an article about gearman and ruby. If you go to github
there is a ruby client there too with a few forks.

http://www.linux-mag.com/id/7330

If anybody uses it please let us know how it works out :)


    Reply    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google