php-resque
php-resque copied to clipboard
php-resque is a Redis-backed PHP library for creating background jobs, placing them on multiple queues, and processing them later.
``` if (!pcntl_wifexited($status) or ($exitStatus = pcntl_wexitstatus($status)) !== 0) { if ($this->job->getStatus() == Job::STATUS_FAILED) { $this->log('Job '.$job.' failed: "'.$job->failError().'" in '.$this->job->execTimeStr(), Logger::ERROR); } else { $this->log('Job '.$job.' exited with code...
I want to clear queued jobs. I tried this: ``` $queued_jobs = Resque\Redis::instance()->lrange('queue:eaisto', 0, -1); if (!empty($queued_jobs) && count($queued_jobs) >= MAX_QUEUE_COUNT) { foreach ($queued_jobs as $job) { $payload = json_decode($job,...
- Improve examples in `config.yml`, unify whitespace and description styles - Rewrite section about web interface - Clarify optional requirements - Improve contribution section (add note about code style, tests,...
Hi, i'm using predis, but when i start the workers i'm getting this message: ``` ** [12:21:53 2019-10-25] Starting worker [Predis\NotSupportedException] Cannot use 'KEYS' with redis-cluster. ``` Config file: ```...
What are the pros and cons of using the `blocking` option in the `config.yml`? It's not documented anywhere and I couldn't figure out what the main functionality differences are. I'm...
short description: clone this funtionality: https://github.com/resque/resque-loner (a job with the same payload will only be added once) This is particularly mighty in combination with delayed jobs.
Feature suggestion: Instead of the current FIFO queue job retrieval (`lpop`), i'd like some queues to work as FILO (`rpop`). The queues in question (on my side) contain worker, that...
As part of the discussion in [#76](https://github.com/mjphaynes/php-resque/pull/76#issuecomment-354273089), @scones suggested to reconsider and possibly slim down external dependencies. The PR #71 deals already with the Symfony component versions, however the scope...