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
1
vote
0 answers

Queued jobs occasionally repeating themselves Laravel Beanstalkd

Occasionally, if one job is stuck on the queue behind a long-running job, it seems to be picked up/attempted multiple times which is leading to repeat emails going out. I've reduced the size of each job and added multiple queues in order to speed…
ruby_noobie
  • 205
  • 4
  • 16
1
vote
2 answers

Database Backed Work Queue

My situation ... I have a set of workers that are scheduled to run periodically, each at different intervals, and would like to find a good implementation to manage their execution. Example: Let's say I have a worker that goes to the store and buys…
Josh
  • 101
  • 2
  • 9
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

Separate beanstalkd queues on same server

I have a production Laravel website that uses Beanstalk as a queue driver. Now, I've been asked to make a staging website on the same server, with all the same functionality of the production website. I am worried about the queues and scheduled…
sveti petar
  • 3,637
  • 13
  • 67
  • 144
1
vote
1 answer

How to run different Beanstalkd Laravel queues from the same server?

I have two different Laravel queues in the same server. In my Supervisord.d folder I have two ini files for those queues. The job names are different in the queues. But, every time I run a job and expect the result from one queue, other queue also…
G. Basu
  • 11
  • 3
1
vote
0 answers

Beanstalkd Queue either fails or runs infinitely

I am using a Beanstalkd queue to deploy jobs in my Laravel 5.3 application. I use Laravel Forge to administer the server. I have one of two scenarios that occur: 1) I set a max number of attempts, which causes every job pushed to the queue to…
retrograde
  • 2,979
  • 6
  • 28
  • 54
1
vote
2 answers

How to test (Bean)Stalker using rspec?

I've this file called jobs.rb require File.expand_path("../environment", __FILE__) job "do.stuff" do |args| $value = 10 end Then I've this spec file called jobs_spec.rb require File.expand_path("../../spec_helper", __FILE__) describe "some…
Linus Oleander
  • 17,746
  • 15
  • 69
  • 102
1
vote
1 answer

Setting up SQS message queue on AWS with Laravel

We are in the process of moving an existing application from Linode to AWS. On Linode, we used beanstalkd as our message queue and now we wanted to try SQS. We are using 2 queues: default and high. Our configuration for beanstalkd was set like…
Andrej
  • 415
  • 1
  • 7
  • 25
1
vote
1 answer

stalker beanstalkd, error with rails log file when loading rails env

config/workers.rb require File.expand_path("../config/environment", __FILE__) when I run stalk ./config/workers.rb I get the following (notorious) error: log/development.log Rails Error: Unable to access log file. Please ensure that exists and …
schone
  • 562
  • 4
  • 13
1
vote
1 answer

Obtaining result from async API

I am building API for processing with Lumen, the processing job is taking around 1-3 seconds per request. So far i did it with job queue and beanstalkd and it is asynchronous, meaning i return job_id that i can check later for the result. I am…
gdarko
  • 175
  • 8
1
vote
2 answers

node.js / ruby integration with beanstalkd

This is related to another question specific to payment processing, and that is my example use case, but I was considering trying to integrate node.js and ruby on the same server using beanstalkd. Basically, I want to use node.js as my main web…
Russell Leggett
  • 8,795
  • 3
  • 31
  • 45
1
vote
2 answers

Laravel Queue PushRaw Delay?

I have an app wherein from laravel 4.2 I am slowly transitioning it to node. Now I have this Queue::pushRaw(payload, tube) the job is in node and this code is working perfectly fine. However I recently have a problem wherein I need those jobs to…
I am L
  • 4,288
  • 6
  • 32
  • 49
1
vote
0 answers

Couldn't find any package whose name or description matched "beanstalkd"

I am trying ton install beanstalkd on ubuntu 14. I have tried using following commands aptitude install -y beanstalkd apt-get install beanstalkd But I am getting following errors Couldn't find any package whose name or description matched …
urfusion
  • 5,528
  • 5
  • 50
  • 87
1
vote
0 answers

What does it mean to keep on getting kicked out of Beanstalk?

Background We used Laravel Queues on top of beanstalkd on two EC2 instances (behind a load balancer). Our AWS EC2 instances are auto-provisioned using forge, including the supervisor that makes sure that beanstalk is always running. With beanstalkd,…
abbood
  • 23,101
  • 16
  • 132
  • 246
1
vote
1 answer

Laravel 5.4 Events fired, but not broadcasted

I have a problem with broadcasting comments on website: - sometimes event listener handled event, but event not broadcasted. \App\Http\Controllers\CommentController in method "store": $comment = Comment::create($request->all()); broadcast(new…
Aleksey Y.
  • 19
  • 3