php-resque

unable to call illuminate class from resque worker

丶灬走出姿态 提交于 2019-12-11 17:45:01
问题 I have just started using resque in my application, I have created a worker and can queue jobs up. I am having issues though using illuminate classes in my worker. below is the error i am seeing in the worker. PHP Fatal error: Class 'Redis' not found in path/to/worker Here is my worker class: class SvrRestart { public function setUp() { // ... Set up environment for this job } public function perform() { $instance = $this->args['instance']; Redis::del('restart:' . $instance); } public

Optimising concurrent ImageMagick Requests using redis/php-resque

拟墨画扇 提交于 2019-11-29 08:43:10
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 in the background on a seperate server so that it doesn't crash our main one. The problem is that it's still taking a very long time to get images done. A user might expect to wait up to 2-3 minutes for an image request because the server is so busy processing these images. I am not sure what information to give you, but I'm more looking for advice. I

Optimising concurrent ImageMagick Requests using redis/php-resque

早过忘川 提交于 2019-11-28 01:54:18
问题 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 in the background on a seperate server so that it doesn't crash our main one. The problem is that it's still taking a very long time to get images done. A user might expect to wait up to 2-3 minutes for an image request because the server is so busy