ok i'm able to 'peek' at the delayed jobs now and get the ID of a
delayed job "(job server=X.X.X.X:X id=9189277 size=76)" but how might
i actually retrieve that job to figure out what it is (deserialize
it)?  i don't see any methods in the ruby client pertaining to
grabbing a specific job by ID :-\  thanks again.



On Sep 12, 8:12 am, trak3r <[email protected]> wrote:
> ah that did get me a little closer, thanks!
>
> $ script/console production
> Loading production environment (Rails 2.3.2)>> beanstalk = 
> AsyncObserver::Queue.queue
>
> => #<Beanstalk::Pool:0x2b72a782c658 @default_tube=nil, @addrs=
> ["X.X.X.X:X"], @watch_list=["default"], @connections=
> {"X.X.X.X:X"=>#<Beanstalk::Connection:0x2b72a782c518
> @socket=#<TCPSocket:0x2b72a782c388>, @addr="X.X.X.X:X",
> @waiting=false, @watch_list=["default"], @last_used="default">}>>> 
> beanstalk.list_tubes
>
> => {"X.X.X.X:X"=>["default", 20090517]}>> beanstalk.use(20090517)
>
> => {"X.X.X.X:X"=>"20090517"}>> beanstalk.peek_delayed
>
> => (job server=X.X.X.X:X id=9189277 size=76)
>
> On Sep 11, 9:49 pm, Keith Rarick <[email protected]> wrote:
>
>
>
> > Peek-delayed only looks at the currently used tube. Try the "use"
> > command to switch tubes.
>
> > kr
>
> > On Fri, Sep 11, 2009 at 5:07 AM, trak3r <[email protected]> wrote:
>
> > > here's a quick console session showing what I mean:
>
> > > $ script/console production
> > > Loading production environment (Rails 2.3.2)
> > >>> beanstalk = AsyncObserver::Queue.queue
> > > => #<Beanstalk::Pool:0x2b037a599658 @default_tube=nil, @addrs=
> > > ["X.X.X.X:X"], @watch_list=["default"], @connections=
> > > {"X.X.X.X:X"=>#<Beanstalk::Connection:0x2b037a599518
> > > @socket=#<TCPSocket:0x2b037a599388>, @addr="X.X.X.X:X",
> > > @waiting=false, @watch_list=["default"], @last_used="default">}>
> > >>> beanstalk.stats['current-jobs-delayed']
> > > => 13
> > >>> beanstalk.peek_delayed
> > > => nil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" 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/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to