pheanstalk

Beanstalkd / Pheanstalk security issue

馋奶兔 提交于 2019-12-24 14:02:03
问题 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 database queries, I asked a friend what I could do to prevent an online user from going into port 11300 of my server, and inserting a job into the queue himself and hence causing the job to be executed with malicious code. I was told that I could

Beanstalk Getting Socket error 110: Connection timed out

不打扰是莪最后的温柔 提交于 2019-12-23 04:11:57
问题 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 Any help would be appreciated. Thanks 回答1: This is a problem at your firewall, you should read the manual or config files of Beanstalk server to find out what port it's using and allow the used ports (default 11300) in your firewall where needed. After this you should never see this error again. If it's

JOB_TOO_BIG Pheanstalk - what can be done?

帅比萌擦擦* 提交于 2019-12-22 05:13:35
问题 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 get: Pheanstalk_Exception JOB_TOO_BIG: job data exceeds server-enforced limit What can I do? 回答1: This is because you're trying to store too much data in the queue itself. Try to cut down the data you're pushing to the queue. For example if your queue

laravel mail queueing - Insufficient data for unserializing

大兔子大兔子 提交于 2019-12-12 03:08:10
问题 I am using Ubuntu laravel 4.2 beanstalked when i try to php artisan queue:work it returns [ErrorException] Insufficient data for unserializing - 1403 required, 218 present mail function (confide package) Mail::queueOn( Config::get('confide::email_queue'), Config::get('confide::email_account_confirmation'), compact('user'), function ($message) use ($user) { $message ->to($user->email, $user->username) ->subject(Lang::get('confide::confide.email.account_confirmation.subject')); } ); 回答1: I came

Fatal Error: Class 'Pheanstalk\Pheanstalk` not found

荒凉一梦 提交于 2019-12-12 00:36:14
问题 I am using a library that I downloaded with composer called Pheanstalk. I am running the following script: <?php //... some unrelated code require_once('vendor/autoload.php'); //loading the autoload file from composer use Pheanstalk\Pheanstalk; //using the namespace $pheanstalk = new Pheanstalk('127.0.0.1'); //initiating an object //... some unrelated code ?> The following error appears: Fatal Error: Class 'Pheanstalk\Pheanstalk' not found in /opt/lampp/htdocs/project_zero/index.php on line

Do priorities work across queues/tubes in Beanstalkd?

你。 提交于 2019-12-10 19:25:07
问题 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 queue/tube created. What I am trying to work out is the following. Let's say I have two queues/tubes in Beanstalkd (queue A and queue B). If items assigned to Queue A have a higher priority than items in Queue B, does that mean items in Queue B will

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' =

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

pheanstalk and beanstalk functions

本秂侑毒 提交于 2019-11-28 02:18:00
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 ): <?php require_once("vendor/autoload.php"); use Pheanstalk\Pheanstalk; $pheanstalk = new Pheanstalk('127.0.0.1'); // ------------ producer (queues jobs): $pheanstalk ->useTube('testtube') ->put("job payload goes here\n"); // ------------ worker (performs jobs): $job = $pheanstalk ->watch('testtube') ->ignore('default') ->reserve(); echo $job->getData(); $pheanstalk->delete($job); // ------------ check server

pheanstalk and beanstalk functions

送分小仙女□ 提交于 2019-11-27 04:52:41
问题 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): <?php require_once("vendor/autoload.php"); use Pheanstalk\Pheanstalk; $pheanstalk = new Pheanstalk('127.0.0.1'); // ------------ producer (queues jobs): $pheanstalk ->useTube('testtube') ->put("job payload goes here\n"); // ------------ worker (performs jobs): $job = $pheanstalk ->watch('testtube') ->ignore(