Questions tagged [beanstalkd]

Beanstalkd is a simple, fast work queue.

Beanstalkd is a simple, fast work queue.

Its interface is generic, but was originally designed for reducing the latency of page views in high-volume web applications by running time-consuming tasks asynchronously.

401 questions
3
votes
1 answer

Stop or restart beanstalkd manually on command line

Beanstalkd is running on my Ubuntu VPS. I don't know how to stop or shut down the beandstalkd server. I want to stop the server manually on the command line. I've found monitoring tools and a configurations script, but no commands for the…
erwineberhard
  • 309
  • 4
  • 17
3
votes
1 answer

Queue manager with nested closures, commands, and dependencies

I am pretty new to Laravel and am trying to create queues to handles my processing scrips. The processing scripts will be triggers by a nightly cron job. I have beanstalkd set up and working with queues already. I also have very simply commands set…
bsparacino
  • 333
  • 1
  • 3
  • 8
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…
3
votes
1 answer

How To Determine if Pheanstalk Jobs Are Finished

I'm currently using Pheanstalk (beanstalkd) to process a number of jobs using multiple workers. I'm wondering if there is a common way to determine if all jobs are finished, as the workers are run asynchronously. I've thought of adding a "finished"…
Gavin Vickery
  • 303
  • 1
  • 3
  • 9
2
votes
1 answer

Stalker Timeout - How do I change the timeout settings?

I have some jobs that run longer than 119 seconds during peak times and I keep getting the stalker error below when it does. I am using stalker, beanstalkd and clockwork for my background processing. Where/how can I change the timeout settings?…
blakecash
  • 117
  • 1
  • 7
2
votes
0 answers

Argument 2 passed to Pheanstalk\Job::__construct() must be of the type string, null given

I'm running a Laravel application and using Beanstalkd and "pda/pheanstalk": "^4.0" for my queue and it works perfectly. However, after a few hours, my jobs start crashing and it throws this crash and when I do php artisan queue:restart it starts…
Hirad Roshandel
  • 2,175
  • 5
  • 40
  • 63
2
votes
1 answer

How to get priority of current job?

In beanstalkd telnet localhost 11300 USING foo put 0 100 120 5 hello INSERTED 1 How can I know what is the priority of this job when I reserve it? And can I release it by making the new priority equals to current priority +100?
Lina
  • 2,090
  • 4
  • 20
  • 23
2
votes
1 answer

Using ffmpeg, PHP and beanstalk

I am very new to ffmpeg and beanstalk and I need a little help. I want to use beanstalk to queue files for ffmpeg to convert. I've downloaded, installed and started beanstalkd (also installed libevent as it suggests to) and i've downloaded a PHP…
Wasim
  • 4,953
  • 10
  • 52
  • 87
2
votes
1 answer

Laravel Queue - Waiting on jobs to finish before dispatching next batch

I have a synchronous process that takes about 7 hours to finish and I'm trying to convert it into jobs to speed it up. The problem is I need to make sure all jobs in step1 are finished before I dispatch step2 jobs. I'm using Beanstalkd as my queue…
Hirad Roshandel
  • 2,175
  • 5
  • 40
  • 63
2
votes
1 answer

Catch beanstalkd DEADLINE_SOON event in php

I'm using Beanstalkd message queue for ffmpeg processing video in my project. I use pheanstalk PHP client for beanstalkd queue. My worker looks like: ... // get latest job $job = $this->pheanstalk->reserve(); // get the data from the job $jobData…
ASergey
  • 298
  • 3
  • 18
2
votes
2 answers

Is 'Pheanstalk_Exception' with message 'JOB_TOO_BIG: job data exceeds server-enforced limit' due to a single job or long queue?

I got an exception while adding many emails to the queue on a Laravel 4.2 app. exception 'Pheanstalk_Exception' with message 'JOB_TOO_BIG: job data exceeds server-enforced limit' I am confused whether this error is due to a single job or because…
Debiprasad
  • 5,895
  • 16
  • 67
  • 95
2
votes
0 answers

Why is Forge queue using the deprecated queue:listen command?

Background We have historically had trouble with deploying during operational hours (our setup: we have two EC2 instances behind a load balancer, which each instance having it's own beanstalkd queue. Each instance is configured using forge, and we…
abbood
  • 23,101
  • 16
  • 132
  • 246
2
votes
1 answer

ruby process when server is free

I want to run a Stalker job, only when the CPU load is less so that the site wont be affected. The job is to convert videos from any format to flv and mp4. so its a pretty expensive job. how can i achieve this? EDIT is this a good way? how about…
Amit
  • 3,952
  • 7
  • 46
  • 80
2
votes
2 answers

Multiple Sites on same Beanstalkd Queue

I currently have a couple sites setup on a server, and they all use beanstalkd for their queues. Some of these sites are staging sites. While I know it would be ideal to have the staging site on another server, it doesn't make financial sense to…
Andrew Brown
  • 5,330
  • 3
  • 22
  • 39
2
votes
1 answer

Duplicate job name in the beanstalk queue

Our system process many jobs from the queue and there are times that those jobs were not yet finish processing. There is a chance that our system will put jobs with the same name of the jobs that are currently process. Is there a checker that will…
Michael
  • 177
  • 1
  • 2
  • 12