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

Password protect resque-web

I'm running php-resque with PHP and have installed resque-web to use the admin interface. Problem: How do you password protect the resque-web pages? I am not familiar with Ruby/Rails/Sinatra so a solution that does not require much knowledge of them…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
0
votes
1 answer

php-resque: How to kill a specific job?

I am using the php-resque library and jobs can be created and tracked using the following code. $token = Resque::enqueue('queue', 'Job', NULL, true); $statusTracker = new Resque_Job_Status($token); $status = $statusTracker->get(); But given the…
oniramarf
  • 843
  • 1
  • 11
  • 27
0
votes
1 answer

PHP - Parse and validate text file data and import it into mysql database

I'm using php-resque to parse and validate data in large files then import that data into a mysql database. I already know that LOAD DATA INFILE can be used to read rows from a text file into a table, but doesn't perform any validation…
xanadev
  • 751
  • 9
  • 26
0
votes
1 answer

php-reque: worker fails with "MySQL server has gone away"

I started using php-resque (https://github.com/chrisboulton/php-resque) along with php and mysql server. I am seeing "MySQL server has gone away" errors by the workers. Job queuing code: if ($request->command == 'custom_script') { …
Jeet Kumar
  • 195
  • 3
  • 16
0
votes
1 answer

Multiple queues vs multiple jobs in resque

I am using resque to background process two types of jobs: (1) 3rd-party API requests (2) DB query and insert While the two jobs can be processed parallely, each job type in itself can only be processed in serial order. For example, DB operations…
Ninja
  • 5,082
  • 6
  • 37
  • 59
0
votes
0 answers

Mage Resque - Job Class not found error

I'm trying to implement a asynchronous functionality in Magento using Mage-Resque. I have followed the instructions in https://github.com/ajbonner/mage-resque and installed all the components except ext-pcntl. Now i'm able to queue a job to…
nikhil
  • 485
  • 1
  • 6
  • 12
0
votes
1 answer

PHP nohup process randomly stops

I have a php-redis process which is running in the background and 99% of the time it works perfectly and continues to run. However, every so often the process just dies without any reason. There is nothing in any of the logs, the server does not run…
burgoyn1
  • 33
  • 3
0
votes
1 answer

php-resque : Retry failed jobs

I have already setup php-resque on Laravel. Everything works great except failed jobs. I can't see any option to requeue (retry) jobs that marked as failed. I see that in redis db there is a queue named "failed" but how i can re-push each failed_job…
user2718934
  • 51
  • 1
  • 1
  • 5
0
votes
1 answer

Scheduling a job after all jobs of a certain type are finished

I have a rather complex caching and invalidation setup where I need to recalculate a lot of data if a specific dataset changes. Basically if one specific entry changes, this might create up to 15 jobs recalculating stuff. While those jobs are…
m0c
  • 2,180
  • 26
  • 45
0
votes
1 answer

php-resque : How to pause and stop a worker from php script

PHP-Resque workers can be started from a script with something like passthru("nohup php " . __RESQUE_BIN__ . " >> " . __RESQUE_LOG__ . " 2>&1 &"); But how do i pause them, or stop them from a php script ?
0
votes
1 answer

"Constant CRLF already defined" error when using php-resque with Laravel

I'm running php-resque together with Laravel 3 on Ubuntu 12.04. Problem: When a job is enqueued in resque, I get the following error: Unhandled Exception Message: Constant CRLF already…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
-1
votes
1 answer

How to pass environment variables to a php script in windows

I'm just a starter in command line applications. I want to know how I can be able to pass environment variables to a php script running in the command line on windows 7 machine. I want to do something similar to this: QUEUE=notification VVERBOSE=1…
phptrend
  • 1
  • 5
1
2