Ah. Makes sense. Looks like even the example script did it wrong then,
because it calls use_tube('foo') without calling watch('foo'). Once I
added watch('foo') to the the example PHP file, it printed out instead
of blocking.

Thanks!

On Apr 7, 12:38 pm, Keith Rarick <[email protected]> wrote:
> On Tue, Apr 6, 2010 at 3:22 PM, Daniel Wong <[email protected]> wrote:
> > At that point, the script just hangs indefinitely. Here's the source
> > code of the script that I'm running:
>
> > ...
> > $beanstalk->use_tube('test');
>
> Here we go. In beanstalkd, you put jobs into the currently "used"
> tube, as determined by the "use" command. However, you reserve from a
> set of several tubes called the "watch list"; a job will come from any
> one of those tubes. You can change your watch list using the "watch"
> and "ignore" commands to add and remove tubes from the list. (Client
> libraries differ in the details of how they expose this.)
>
> The default used tube is "default", which you've changed to "test". Okay so 
> far.
>
> The default watch list is ["default"], which you haven't changed.
>
> Since you never put any jobs into the default tube, the reserve
> command just sits around forever waiting for a job.
>
> kr

-- 
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