Pheanstalk is a library that serves as an API used to assist in the inter communication between php processes / scripts via a queue system where jobs are created, placed in a FIFO queue (first in, first out), and then processed by worker scripts/processes. Pheanstalk uses the Beanstalkd library.
Questions tagged [pheanstalk]
46 questions
0
votes
1 answer
How to get job data from reserved jobs in laravel using pheanstalk?
I am working on a feature where I need to check the job status in beanstalkd queues. I have tried a few things but I am not getting the jobs that are reserved for queues other than the default queue
$pheanstalk =…

Rohan
- 13,308
- 21
- 81
- 154
0
votes
1 answer
pheanstalk search fast a job
I have problem with queue in pheanstalk (version: 3.0.2). In queue is 0-10k jobs and sometimes I must search in data in this queue and add next jobs. So I want to add jobs that doesn't exist.
In the class Pheanstalk I don't see method that search in…

viko
- 491
- 6
- 23
0
votes
1 answer
Pheanstalk reserving same beanstalkd job twice or more
I have a 3 beanstalkd queue processes running on the same ip but different ports. I have a separate server running supervisor spawning php workers in parallel (20 per beanstalkd port) to process the queue. My problem is that it seems like two…

pierdevara
- 406
- 2
- 9
0
votes
0 answers
Beanstalkd does not preform job, but the data is send to tube
I am using symfony3 with armetiz/LeezyPheanstalkBundle.
I want to preform a job that create table from given name. I already created the symfony command create:table with argument name that create the table if i run from console bin/console…

sanof
- 349
- 7
- 18
0
votes
1 answer
Fatal Error: Class 'Pheanstalk\Pheanstalk` not found
I am using a library that I downloaded with composer called Pheanstalk. I am running the following script:

Webeng
- 7,050
- 4
- 31
- 59
0
votes
1 answer
Beanstalk queue Error [PDOException] could not find driver. when save database eloquent
Hei guys i got an error "Error [PDOException] could not find driver" like describe on my title. anyone know how to fixed it ??
this is my…

rizky redjo
- 75
- 11
0
votes
1 answer
pheanstalk:put will be blocking when reserve() is blocking
I am so confused why put will be blocking when reserve() is blocking in pheanstalk, I have write two function:
put function :
worker function:
both of these are on a same host, but when i exec the function run(), if it's blocking; the function…

djo0x0
- 23
- 3
0
votes
0 answers
Yii2 Console Controller Errors
I created a console controller named beanstalk, this is my first time using the console controllers, am trying to run it from the terminal and i got these errors
Error: Getting unknown property: yii\console\Application::user
Error: PHP Startup:…

Tariq Albajjali
- 327
- 1
- 6
- 16
0
votes
1 answer
Beanstalk in a centralized server, how to avoid duplicate work for a worker?
I have a server that runs Beanstalk, and some independent servers that runs the workers, in PHP, with Pheanstalk.
From the moment a worker A get a job :
$job = $pheanstalk->watch('tube')
->ignore('default')
->reserve();
$data =…

Cyril N.
- 38,875
- 36
- 142
- 243
0
votes
1 answer
How to properly use an object in a PHP service
The specific scenario is this: a server running beanstalkd, using the PHP libary Pheanstalk. I have a PHP worker running as a service, so it theoretically never stops running.
The initial code for the worker is just a function call made to do the…

sharf
- 2,123
- 4
- 24
- 47
0
votes
2 answers
laravel mail queueing - Insufficient data for unserializing
I am using
Ubuntu
laravel 4.2
beanstalked
when i try to
php artisan queue:work
it returns
[ErrorException]
Insufficient data for unserializing - 1403 required, 218 present
mail function…

Moamen Abdelwahed
- 587
- 7
- 19
0
votes
0 answers
Laravel 4 beanstalkd exception catching issue in job processing
I am using beastalkd for the job queue processing email validations.
job processor implementation is like
public function fire($job, $data)
{
// processing
try {
//some processing including some smtp simulation checks
}…

anuragdxw
- 1
- 3
0
votes
1 answer
Can't create a new tube in Pheanstalk
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…

ruba
- 147
- 1
- 2
- 7
0
votes
1 answer
beanstalkd + pheanstalk rush condition
I have beanstalkd setup. I'm using the pheanstalk php library for adding jobs and for my workers.
Adding jobs is working correctly and I am logging the job id's in my database for later reference. No job id's are being skipped IE: they go in there…

hcker2000
- 603
- 1
- 6
- 30
0
votes
1 answer
pheanstalk useTube()->put() function, don't wait for response
I currently have the following:
try {
$pheanstalk->useTube($tube)->put($data);
} catch (\Exception $e) {
$logger = $this->container->get('logger');
$logger->info('Could not reach beanstalk: ' . $e);
}
This works fine, but I want to have…

Derick F
- 2,749
- 3
- 20
- 30