Commit Graph

25 Commits

Author SHA1 Message Date
Ruud Kamphuis
4d5552867a Basic support for blocking list pop 2013-05-29 09:14:17 +02:00
Daniel Hunsaker
8d1a9a5564 Updated to match coding style.
Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-05-12 12:58:18 -06:00
Daniel Hunsaker
3798fa3ba6 Added enqueue failure detection
If a job fails to be enqueued, it would be useful to know it.  So now
Resque actually tells us whether the enqueue action was successful or
if it failed.  If your job ID comes back as FALSE, it didn't enqueue.

Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-05-09 16:27:50 -06:00
Chris Boulton
6800fbe5ac fix compatibility with phpredis
* implement a fork helper method that closes the connection to redis before forking (instead of resetting after)
  to work around bugs with phpredis/socket fork handling
* phpredis does not automatically typecast to string, so worker name must be typecasted when registering
2013-01-13 02:59:06 +11:00
Chris Boulton
2ba15eb555 replace Redisent with Credis (also adds native phpredis support) 2013-01-12 23:37:38 +11:00
Chris Boulton
2f5b48930f make better use of composer across php-resque
* recommend php-resque be installed via Composer
* provide quick getting started steps
* move ./resque.php to bin/resque, make it available as a Composer bin
* have classes autoloaded via Composer (or some other means if not using Composer)
2013-01-12 22:40:26 +11:00
Chris Boulton
0549d6c88a update version to 1.2 2012-10-13 18:28:16 +11:00
Chris Boulton
c908109a74 Remove silly copyright line in docblock comments, update email address, remove copyright year because it is boring to maintain 2012-10-13 17:55:41 +11:00
Chris Boulton
b0fbfa4f15 make the queue for an enqueued job available in the afterEnqueue event 2012-05-10 22:13:28 +10:00
Chaitanya Kuber
cc871c06ab fixed spelling error and removed debug code 2012-03-15 20:03:34 -05:00
Chaitanya Kuber
48a7febd88 Merge branch 'master' of https://github.com/chrisboulton/php-resque 2012-03-06 22:48:01 -06:00
Chris Boulton
0ad5903a85 Merge remote-tracking branch 'pedroarnal-master/master'
Conflicts:
	lib/Resque.php
2012-03-05 19:41:09 +11:00
Chris Boulton
ebe7665817 fix lost jobs when there is more than one worker process started by the same parent process 2012-03-05 19:21:43 +11:00
Chaitanya Kuber
951d9d37b5 updated method comments 2012-02-29 22:32:52 -06:00
pedroarnal
0ac835a630 Enabling use of unix sockets on Redis backend. 2012-01-25 00:46:34 +01:00
Salimane Adjao Moustapha
7a7cfbf2b9 fix comment to specify that is an array instead of an object in Resque::push 2011-12-16 10:32:28 +08:00
Salimane Adjao Moustapha
458fd6488b replace is_object with is_array when reserving jobs since Resque::pop actually returns an array instead of an object 2011-12-08 11:25:15 +08:00
Patrick Bajao
863099564e Modified setBackend() to accept as the second parameter 2011-06-14 17:33:38 +08:00
Patrick Bajao
27beb8cc20 Added database parameter in setBackend() to select the database for a connection. The default database is set to 0. 2011-06-14 17:33:37 +08:00
chris.boulton
6f43fcfed8 Add a plugin/event/hook system 2011-03-27 18:42:46 +11:00
Chris Boulton
ae89f29057 Update changelog. Formatting fixes 2010-08-01 15:03:28 +10:00
Daniel Ceballos
be2ffa7d6c adding redis cluster support 2010-06-26 12:45:46 +08:00
Chris Boulton
9ce7cfb370 Change all require statements to include the full path. 2010-04-20 10:59:06 +10:00
Chris Boulton
c5396f4e86 Change arguments for jobs to an array instead of an object. Also change other json encoded items to decode to an array rather than objects 2010-04-19 10:35:50 +10:00
Chris Boulton
cb4205d508 Initial commit 2010-04-18 23:58:43 +10:00