beanstalkd

Reload beanstalkd configuration without restaring

我们两清 提交于 2019-12-08 09:45:45
问题 Is there a way to reload the beanstalkd config without actually restarting beanstalkd? When I use sudo service beanstalkd restart or sudo service beanstalkd force-reload it clears all the queues. (Yes, in the future I will run it in persistent mode) 来源: https://stackoverflow.com/questions/15944879/reload-beanstalkd-configuration-without-restaring

Pheanstalk does not preform job

女生的网名这么多〃 提交于 2019-12-08 09:41:48
问题 I am using Symfony framework 3 with LeezyPheanstalkBundle. This is my first time using Pheanstalk. I would like to create event that fire up on creating new power plant. I created subscriber, job manager, job class. The code works. I can see the data is send to tube, and than job delete itself like i set to do in subscriber. I dont undestand why nothing happens after that. in this line of code i tell what command i want to set: $this->jobManager->createJob("power_plant:create",$payload); if i

How to pass arguments to homebrew service

馋奶兔 提交于 2019-12-07 17:31:54
问题 I have installed beanstalkd using homebrew but am unable to increase the maximum job size. This is normally done by passing the -z argument as "-z byte_size" All attempts to edit the formula for myself have failed to increase the job size as needed. How do I successfully pass the -z argument in homebrew to increase the maximum job size. I have tried using "brew edit beanstalkd" and modified the file adding a second "string" value with the -z 10000000 but this didn't seem to help. 来源: https:/

How to profile a PHP shell script app or worker using Blackfire

情到浓时终转凉″ 提交于 2019-12-07 17:26:26
问题 I noticed that when I have an endless worker I cannot profile PHP shell scripts. Because when it's killed it doesn't send the probe. What changes shall I do? 回答1: When you are trying to profile a worker which is running an endless loop. In this case you have to manually edit your code to either remove the endless loop or instrument your code to manually call the close() method of the probe (https://blackfire.io/doc/manual-instrumentation). That's because the data is sent to the agent only

How to use Models in a Laravel Queue

☆樱花仙子☆ 提交于 2019-12-07 13:02:34
问题 I'm trying to import a mailing list from CSV to my DATABASE. I have two models in my Laravel which is responsible for doing this: Target and Mailing (one Target has many Mailing s) I'm using Queue system with Beanstalkd. I'm using: Queue::push('ImportCSV', array( 'file' => $file->getClientOriginalName(), 'target' => $name )); To push my jobs and then I have the ImportCSV job class: class ImportCSV { public function fire($job, $data) { Log::info("Starting to add {$data['target']} to database")

Running beanstalkd worker on a remote server

我只是一个虾纸丫 提交于 2019-12-07 12:22:44
问题 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 listener [program:queue1] command=php artisan queue:listen --queue=queue1 --tries=2 ... My laravel queue config file(app/config/queue.php) reads the following 'beanstalkd' => array( 'driver' => 'beanstalkd', 'host' => '--- Machine3 IP ---', 'queue' => 'queue1', 'ttr' =

Is laravel queue system suitable for big projects? [closed]

可紊 提交于 2019-12-06 07:52:14
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 3 years ago . I needed to know if laravel 5 queue management system is suitable for big projects (having about 100.000 users). I want to do something like messaging (not spam :) ) users at once each day. Is redis good enough for this job (queuing)? Or it is better to use a lib that is specially for queuing (like beanstalkd)? To be fair and to try and post a reasonable answer to this

Simple scalable work/message queue with delay

断了今生、忘了曾经 提交于 2019-12-06 02:38:26
问题 I need to set up a job/message queue with the option to set a delay for the task so that it's not picked up immediately by a free worker, but after a certain time (can vary from task to task). I looked into a couple of linux queue solutions (rabbitmq, gearman, memcacheq), but none of them seem to offer this feature out of the box. Any ideas on how I could achieve this? Thanks! 回答1: I've used BeanstalkD to great effect, using the delay option on inserting a new job to wait several seconds till

Running beanstalkd worker on a remote server

扶醉桌前 提交于 2019-12-06 01:26:17
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 listener [program:queue1] command=php artisan queue:listen --queue=queue1 --tries=2 ... My laravel queue config file(app/config/queue.php) reads the following 'beanstalkd' => array( 'driver' => 'beanstalkd', 'host' => '--- Machine3 IP ---', 'queue' => 'queue1', 'ttr' => 60, ), And I have installed beanstalkd on Machine3 along with Beanstalk console and can see my tasks

How to use Models in a Laravel Queue

此生再无相见时 提交于 2019-12-05 23:50:54
I'm trying to import a mailing list from CSV to my DATABASE. I have two models in my Laravel which is responsible for doing this: Target and Mailing (one Target has many Mailing s) I'm using Queue system with Beanstalkd. I'm using: Queue::push('ImportCSV', array( 'file' => $file->getClientOriginalName(), 'target' => $name )); To push my jobs and then I have the ImportCSV job class: class ImportCSV { public function fire($job, $data) { Log::info("Starting to add {$data['target']} to database"); $target = new Target(); $target->name = $data['target']; $target->save(); $reader = new \EasyCSV