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
1
vote
2 answers
Pheanstalk workers reserving same job multiple times when buried immediately
So I use beanstalk_console (https://github.com/ptrofimov/beanstalk_console) to monitor my beanstalkd queue and at times, I would get 1 or 2 jobs stuck in the buried state. This is due to how I have my worker code setup, where I immediately bury a…

georaldc
- 1,880
- 16
- 24
1
vote
1 answer
Pheanstalk queueng list reserve PHP
Hi All i am having trouble on my pheanstalk sorry this is my first time of using this. My project involves a one save of 5000 entries the php when i work on gets 502 because of the traffic request.So my solution to these is to use a pheanstalk on…

Jean Scuff
- 11
- 1
1
vote
1 answer
Beanstalkd / Pheanstalk security issue
I have just started using beanstalkd and pheanstalk and I am curious whether the following situation is a security issue (and if not, why not?):
When designing a queue that will contain jobs for an eventual worker script to pick up and preform SQL…

Webeng
- 7,050
- 4
- 31
- 59
1
vote
1 answer
Pheanstalk reserve function
I have just started using pheanstalk and am having an issue with the reserve function. I have the following code for a worker script:

Webeng
- 7,050
- 4
- 31
- 59
1
vote
1 answer
pheanstalk and beanstalk functions
The following code is a snipet taken from an example of pheanstalk being implemented and working properly (obtained from pheanstalk's github page: https://github.com/pda/pheanstalk):

Webeng
- 7,050
- 4
- 31
- 59
1
vote
0 answers
List all the jobs in Beanstalkd
We have beanstalkd running in our server. All our application records are stored in beanstalk before they are written into the mysql tables. Now few items got stuck inside this beanstalk queue. They are not being written into the database. So I…

user2354254
- 171
- 1
- 1
- 6
1
vote
2 answers
PHP process forking with Pheanstalk
I'm trying to create a PHP script that runs in the background and forks child processes. (I'm aware that could explode the server; there are extra safeguards in place that are outside the scope of this question)
In a nutshell, the code works like…

Anthony
- 5,275
- 11
- 50
- 86
1
vote
1 answer
Beanstalk Getting Socket error 110: Connection timed out
I am using Beanstalk server with Pheanstalk Connection in php application.
Previously it was fine, but suddenly it is getting error
Critical: Fatal. Socket error 110: Connection timed out

Vivek G.S
- 117
- 2
- 10
1
vote
1 answer
Beanstalk/Pheanstalk not working in background
I am having troubles in setting up Pheanstalk on Ubuntu server.
I am relative new to programming, I have done all steps:
- installed beanstalk with sudo apt-get install beanstalk
- got pheanstalk from https://github.com/pda/pheanstalk/
And here is…

Ionut Tatu
- 525
- 1
- 7
- 20
1
vote
1 answer
Pheanstalk in Laravel, Everything ends up as an unhandled response?
Ive installed the Pheanstalk bundle for Laravel (https://github.com/mikelbring/Pheanstalk)
I am now following the basic example code to try and pass a job to the queue and retrieve it back again.
This is my code:
Route::get('queue',…

adam Kearsley
- 951
- 2
- 13
- 23
0
votes
0 answers
pda/pheanstalk/src/Socket/StreamFunctions.php fwrite(): send of 219 bytes failed with errno=32 Broken pipe
pda/pheanstalk/src/Socket/StreamFunctions.php fwrite(): send of 219 bytes failed with errno=32 Broken pipe
How can we solve this problem by reporting this frequently if the quantity is higher
I tried to recreate the reply, but it didn't work
0
votes
1 answer
Pheanstalk responds BAD_FORMAT
While using Pheanstalk and Beanstalkd I get this error.
Pheanstalk\Exception\ServerBadFormatException
BAD_FORMAT in response to 'put 1024 0 18446744073709551615 363'
Beanstalkd is running and I can access it from the terminal.
Any ideas?

Stavros
- 79
- 3
- 7
0
votes
1 answer
Beanstalkd/Pheanstalk for PHPMailer on Amazon EC2
I would like to implement a queuing mechanism for sending out email via PHPMailer on Amazon EC2. I have set up Beanstalkd correctly on the server and can access it via a console. The mail doesn't seem to go through (trying the various combinations…

Qasim Shahed
- 3
- 3
0
votes
0 answers
Enqueue controller action process
Symfony 2.8
Using https://github.com/j-guyon/CommandSchedulerBundle to manage periodic Command executions.
Each of these Command executions invokes an specific Service based on the Command arguments.
Being in the Services (all of them implementing…

NorthmaN
- 105
- 2
- 11
0
votes
0 answers
Why are jobs queued twice by beanstalkd after 2 minutes
I have the following environment and I notice that the jobs are queued twice randomly after 2 minutes:
Web App based on PHP F3 framework
Pheanstalk 3.0.2 using composer in the app
Beanstalkd server
Beanstalkd console app
Supervisord
Worker…

Mohamad Dekmak
- 71
- 1
- 1
- 6