Questions tagged [php-resque]

php-resque is a PHP port of Resque, a Redis-backed Ruby library for creating background jobs, placing those jobs on one or more queues, and processing them later.

php-resque is a PHP port of Resque (pronounced like "rescue"), a Redis-backed Ruby library for creating background jobs, placing those jobs on one or more queues, and processing them later.


Useful links

27 questions
14
votes
2 answers

php-resque job perform function not executed?

I'm trying to make a background job with php-resque. I have this code: \Resque::setBackend('127.0.0.1:6379'); \Resque::enqueue('default', '\BaseModule\Jobs\Mail', array()); and in Mail class i have this class Mail { public function perform() …
m150
  • 173
  • 6
3
votes
1 answer

BDD testing with too many background jobs?

I'm using BDD (Behat) for functional testing in my project. Now I have a problem when testing a feature with too many background jobs. Example: Scenario: Import issue at the first time Given I have a issue package "1602.zip" When I upload…
Chin Lee
  • 133
  • 1
  • 1
  • 8
3
votes
1 answer

Multi-tenant resque, and avoiding one tenant clogging the queue

We have a multi-tenant app that runs resque for background processing. The issue we occasionally run into is when a single tenant performs a lot of background work within a very short period of time. This essentially clogs up the queue for a while…
Keith Palmer Jr.
  • 27,666
  • 16
  • 68
  • 105
3
votes
2 answers

How to manually prune and restart php-resque workers

Very frequently php-Resque workers will be stuck on a job for days, and eventually all the workers gets stuck and the site stops working.The php-resque library was installed using Composer. Question: I want to do the pruning manually. How do I…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
2
votes
2 answers

Optimising concurrent ImageMagick Requests using redis/php-resque

I am working on a site that uses ImageMagick to generate images. The site will get hundreds of request every minute and using ImageMagick to do this causes the site to crash. So we implemented Redis and Php-resque to do the ImageMagick generating…
Patchesoft
  • 317
  • 6
  • 21
2
votes
1 answer

PHP-Resque failed jobs list

I have successfully integrated PHP RESQUE in my Ubuntu 14. How can I get list of failed jobs in PHP to process them? I tried searching on web but could not find specific answer for PHP. Please help. Thanks in advance.
2
votes
1 answer

Resque could not find job class ZF2 namespaces

Attempting to use the Redis backed PHP-Resque project https://github.com/chrisboulton/php-resque from within a ZF2 project. (Apigility to be specific) What I'm having trouble with, is combining the ZF2 namespaces and the classes for instance…
Erik
  • 2,782
  • 3
  • 34
  • 64
2
votes
1 answer

PHP-Resque won't run perform()

I am using PHP-Resque and can't get the perform() method to work. Can anyone tell what I'm missing? This is my setup: I have 3 terminals open running the following: $ php workers.php $ redis-cli monitor $ php create.php (To create a…
JREAM
  • 5,741
  • 11
  • 46
  • 84
2
votes
1 answer

How to get jobid from inside job in php-resque?

I'm having first steps with php-resque https://github.com/chrisboulton/php-resque . Anybody knows how can I get jobid inside Job Class ?
Kubber
  • 367
  • 3
  • 13
1
vote
2 answers

PHP Resque Worker not working?

I want to use php_resque(https://github.com/chrisboulton/php-resque) for my codeigniter project. This is the function 'test' to create a new job. public function test() { $this->load->library('My_Job'); …
Nag
  • 43
  • 6
1
vote
1 answer

Queuing data to redis with php-resque is slow

I'm using php-resque for queuing my jobs. And I'm doing apache ab tool to benchmark my performance. php-resque does good job, but it's slow as every time my it connects to redis which impacts performance (without connection it handles ~130…
shyammakwana.me
  • 5,562
  • 2
  • 29
  • 50
1
vote
0 answers

How can we work with php-resque in ZF?

I want php-resque for an action of my controller in my ZF application. Can we use php-resque as helper? Please let me know how can I use it?
ashikpatel
  • 156
  • 7
1
vote
1 answer

How to cancel a job in PHP-RESQUE

I am using the below library https://github.com/chrisboulton/php-resque How to cancel the running job. I tried to get the worker object and kill the child..but the object does not have any child.
sooners
  • 133
  • 1
  • 9
1
vote
2 answers

php - ./yiic rresque start does nothing

I installed this extension http://www.yiiframework.com/extension/yii-resque/ user@host:/path/to/protected$ ./yiic rresque start Yii command runner (based on Yii v1.1.13) Usage: ./yiic [parameters...] The following commands are…
arfname
  • 379
  • 1
  • 4
  • 10
1
vote
1 answer

How to disable Yii Resque log

I'm working with Yii-resque extension. I need to disable Yii-resque log. How can I do it ?.
FixBug
  • 355
  • 2
  • 17
1
2