Questions tagged [pheanstalk]

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.

46 questions
7
votes
2 answers

JOB_TOO_BIG Pheanstalk - what can be done?

On Laravel 4.2 & Laravel Forge I Made a mistake and accidentally pushed some code on to the production sever, but there was a bug and it pushed a job to the queue without deleting it once done. Now I can't push anything in the queue anymore, I…
commandantp
  • 947
  • 1
  • 12
  • 25
5
votes
4 answers

Class 'Pheanstalk_Pheanstalk' not found in Laravel 4 with Beanstalk

I'm trying to get beanstalk up and running and I'm getting the exception when trying to run Queue::push(): Class 'Pheanstalk_Pheanstalk' not found I've run composer require pda/pheanstalk, and even regenerated my auto-load file an extra time. It's…
Anthony
  • 5,275
  • 11
  • 50
  • 86
5
votes
1 answer

Do priorities work across queues/tubes in Beanstalkd?

I am a little confused as to whether priorities work at the job or queue/tube level. The reason I ask is that I am using a beanstalkd integration module in Drupal. This module enables one to define queues/tubes and assign a priority value to each…
Benjen
  • 2,835
  • 5
  • 28
  • 42
5
votes
3 answers

Laravel 4.1 mail queueing with beanstalkd driver - "Insufficient data for unserializing"

I'm working on my first Laravel app, and hit an odd problem when trying to queue up email sending using Mail::queue to send emails. I was originally using the sync driver and everything worked fine, however having now switched over to the beanstalkd…
Jonathan Ellis
  • 5,221
  • 2
  • 36
  • 53
3
votes
1 answer

Beanstalk always have infinite loop php

I did something wrong with my Beanstalkd setup. I have created a producer, but it keeps loading, like an infinite loop. I also posted this issue to GitHub. I tried adding 2 tubes which have a simple array in them, but the other issue that I…
3
votes
1 answer

Running beanstalkd worker on a remote server

My stack set-up consists of the following Machine1 - Main Server (Running laravel) Machine2 - MySql Server for the laravel codebase Machine3 - Beanstalkd worker I have setup Supervisord on Machine1 and added the following queue…
dylanfa88
  • 65
  • 3
  • 9
3
votes
2 answers

How to load Pheanstalk in PHP?

I'm trying to get Pheanstalk working for PHP but I can't load it. I downloaded the source code from https://github.com/pda/pheanstalk, I moved src/Pheanstalk to my project directory, and then did the following in test.php: use…
bodacydo
  • 75,521
  • 93
  • 229
  • 319
3
votes
2 answers

Beanstalkd (via pheanstalk) allowing duplicate, simultaneous reserves?

Trying to wrap Pheanstalk in my PHP job base class. I'm testing the reserve and reserve with delay functionality and I've found that I can reserve a job from a second instances of my base class without the first instance releasing the job or the…
2
votes
1 answer

Pheanstalk touch job to ask more time

How do I make my worker ask for more time to work on the job ? I am using the pheanstalk library. Work is a parsing of a file which depending on the file may take more than 60 secs, the default ttr. while( $job =…
ODelibalta
  • 2,194
  • 1
  • 18
  • 28
2
votes
1 answer

Beanstalkd: How to auto-bury a job that hits TTR?

In Beanstalkd, when a job hits TTR it will kill the worker handling the job and release the job back into the pool. In our system, this should be a super-rare event, and in that case I would like to just bury the job instead. How would one go about…
DOOManiac
  • 6,066
  • 8
  • 44
  • 67
2
votes
2 answers

Beanstalk + Pheanstalk Delay Existing Job

I'm intermediate in Beanstalk + Pheanstalk. I'm developing my core part (background process) using Beanstalk. It's excellent tool that's no doubt but I'm stuck in one situation. I'm using beanstalk using Yii framework. Let's say, I have two jobs A…
Sanjay Mohnani
  • 990
  • 7
  • 18
2
votes
2 answers

Beanstalkd / Pheanstalk - Cant get it working at all! (WAMP/PHP/LARAVEL)

So im trying to get Pheanstalk queue working in Laravel 4, which is built in (i had to composer instal the beanstalkd lib). Now thats done... im trying to send jobs to my workers. Everytime i do i get this error [2013-04-25 08:55:03] log.ERROR:…
adam Kearsley
  • 951
  • 2
  • 13
  • 23
1
vote
1 answer

Beanstalkd tube missing

Integrated Pheanstalk library in my web app. Created three tubes for three type of jobs. Created a beanstalkd web console also to see the job status. All are working fine. The issue is, today when I checked the console, one of the tubes is missing.…
1
vote
1 answer

How to fix 'PHP Fatal Error: Uncaught Pheanstalk\Exception\SocketException: Unknown error'

I'm trying to set up a BeanStalkD client, using pheanstalk. I can perform certain operations such as listTubes(). When I try and reserve a job off a beanstalkd queue I am getting the following error: PHP Fatal error: Uncaught…
John McAulay
  • 185
  • 9
1
vote
1 answer

Php daemon process crashing frequently

We are using beanstalkd to run receiving jobs from client, with php and using pheanstalk as php agent. we running a worker as php system daemon and keep monitoring using monit. But it keeps restarting in a once in a day frequency. After observing…
1
2 3 4