Can't create a new tube in Pheanstalk

455 Views Asked by At

I am using Pheanstalk, and I want to create a new tube on an existing queue, so I wrote the following code:

$this->pheanstalk = new Pheanstalk(127.0.0.1);
$this->pheanstalk->useTube('api')->put($json_info, 0,0,1); //json_info is data that i need to put in a tube as json encoded

But when I run the following command to check the tube:

$ telnet localhost 11300 
list-tubes

This is what I always get:

OK 14
- default

Why isn't the 'api' tube being created? Is there something I should do to see the 'api' tube in the list?

1

There are 1 best solutions below

0
On

The tube is created from the side of the workers, using the watch function