librelist archives

« back to archive

Repository / Archive example is a working example?

Repository / Archive example is a working example?

From:
Jason
Date:
2010-03-14 @ 10:53
I'm sure this is most likely a lame question, so excuse me if that's the
case..   I installed resque from the gem, set up a Rakefile and the web
interface and worker starts without issue.  I copied your example into two
files in the same directory, named archive.rb and repository.rb (making some
edits just to puts out a hello world).  I just want to see something hit the
queue and process my hello world, but I am getting a "uninitialized constant
Archive <http://rubydev.military.com:5678/failed#>" error show up in the web
interface when i try to run this example.  I am wondering if this example is
just showing a basic idea, or if it is actually supposed to work?  I guess
I'm not seeing how passing the Archive class to Resque.enqueue is actually
initializing the class?

Here is a quick pastie of what im looking at:

http://pastie.org/868813

Thanks!



-- 

Most people are born and years later die without really having lived at all.
They play it safe and tiptoe through life with no aspiration other than to
arrive at death safely.

 -- Tony Campolo, "Carpe Diem"

Re: [resque] Repository / Archive example is a working example?

From:
Philippe Lafoucrière
Date:
2010-03-14 @ 11:23
Apparently your worker doesn't know any thing about your classes. make  
sure to load your classes in your rake task.

Sent from my iPhone

On 14 mars 2010, at 11:53, Jason <jasonjackson@gmail.com> wrote:

> I'm sure this is most likely a lame question, so excuse me if that's  
> the case..   I installed resque from the gem, set up a Rakefile and  
> the web interface and worker starts without issue.  I copied your  
> example into two files in the same directory, named archive.rb and  
> repository.rb (making some edits just to puts out a hello world).  I  
> just want to see something hit the queue and process my hello world,  
> but I am getting a "uninitialized constant Archive" error show up in  
> the web interface when i try to run this example.  I am wondering if  
> this example is just showing a basic idea, or if it is actually  
> supposed to work?  I guess I'm not seeing how passing the Archive  
> class to Resque.enqueue is actually initializing the class?
>
> Here is a quick pastie of what im looking at:
>
> http://pastie.org/868813
>
> Thanks!
>
>
>
> -- 
>
> Most people are born and years later die without really having lived  
> at all. They play it safe and tiptoe through life with no aspiration  
> other than to arrive at death safely.
>
>  -- Tony Campolo, "Carpe Diem"
>

Re: [resque] Repository / Archive example is a working example?

From:
Jason
Date:
2010-03-14 @ 11:42
Hmm..  A lame question indeed..  Thanks, it all makes perfect sense now.

:-)





2010/3/14 Philippe Lafoucrière <philippe.lafoucriere@gmail.com>

> Apparently your worker doesn't know any thing about your classes. make sure
> to load your classes in your rake task.
>
> Sent from my iPhone
>
> On 14 mars 2010, at 11:53, Jason <jasonjackson@gmail.com> wrote:
>
> I'm sure this is most likely a lame question, so excuse me if that's the
> case..   I installed resque from the gem, set up a Rakefile and the web
> interface and worker starts without issue.  I copied your example into two
> files in the same directory, named archive.rb and repository.rb (making some
> edits just to puts out a hello world).  I just want to see something hit the
> queue and process my hello world, but I am getting a "uninitialized
> constant Archive <http://rubydev.military.com:5678/failed#>" error show up
> in the web interface when i try to run this example.  I am wondering if this
> example is just showing a basic idea, or if it is actually supposed to work?
>  I guess I'm not seeing how passing the Archive class to Resque.enqueue is
> actually initializing the class?
>
> Here is a quick pastie of what im looking at:
>
> <http://pastie.org/868813>http://pastie.org/868813
>
> Thanks!
>
>
>
> --
>
> Most people are born and years later die without really having lived at
> all. They play it safe and tiptoe through life with no aspiration other than
> to arrive at death safely.
>
>  -- Tony Campolo, "Carpe Diem"
>
>


-- 
Most people are born and years later die without really having lived at all.
They play it safe and tiptoe through life with no aspiration other than to
arrive at death safely. -- Tony Campolo, "Carpe Diem"