Commit Graph

312 Commits

Author SHA1 Message Date
Chris Boulton
a8322cd4e7 Merge pull request #212 from chrisboulton/beforeEnqueue
Add beforeEnqueue hook
2015-02-04 10:56:54 -08:00
Chris Boulton
1d24d009f2 Merge pull request #223 from theaxel/master
Fix dequeueing with args
2015-02-02 12:34:14 -08:00
Chris Boulton
0c39e2ca7a ensure false is returned when DontCreate is thrown 2015-02-02 12:30:40 -08:00
Chris Boulton
8007705221 return false when job creation is cancelled by beforeEnqueue 2015-02-02 12:29:26 -08:00
Chris Boulton
2308c3ced4 update phpdoc 2015-02-02 12:29:26 -08:00
Chris Boulton
e815c687f1 update changelog 2015-02-02 12:29:26 -08:00
Chris Boulton
a95c24b32e add beforeEnqueue hook that allows the enqueue to be cancelled 2015-02-02 12:29:24 -08:00
Andrew Brereton
7101a3097f gethostname() doesn't work on Amazon's EC2 2014-12-18 17:27:18 +11:00
Axel K.
6cda08de25 #218 Remove item from queue as well when args match 2014-11-10 15:38:58 +01:00
Axel K.
226ec33bb0 Test for asserting that correct items get dequeued when args are provided 2014-11-10 15:33:42 +01:00
Dayson Pais
2c8b215cda Implicitly type cast exception while logging.
Removed the unnecessary (string) type-casting.
2014-11-08 15:11:20 +05:30
Chris Boulton
c335bc3555 Merge pull request #214 from bc-vincent-zhao/allow-callable-redis-setup
Allows a callable to be passed to Resque::setBackend for setting the redis instance
2014-09-25 12:24:50 +10:00
vincent zhao
bc9dac71ca Allows a callable to be passed to Resque::setBackend for setting Resque:: 2014-09-25 10:31:09 +10:00
Chris Boulton
f14e844c45 Merge pull request #211 from wedy/dequeue
ability to dequeue jobs of specific queue
2014-09-24 13:03:06 +10:00
Wedy Chainy
29e37784cd Alter dequeue - now accepting 'args' and "ID" arguments 2014-09-23 09:42:31 +10:00
Wedy Chainy
4a97c14628 dequeue 2014-09-22 16:17:16 +10:00
Chris Boulton
e393d5672c Merge pull request #213 from wedy/turn-on-redis-rename-cmd
Turn on redis command 'rename'
2014-09-22 16:12:40 +10:00
Wedy Chainy
98fde571db Turn on redis command 'rename' 2014-09-19 21:29:53 +10:00
Chris Boulton
80d1c4be19 Merge pull request #208 from sasezaki/patch-1
add PHP 5.5, 5.6 to .travis.yml
2014-09-07 17:23:16 +10:00
kazusuke sasezaki
295ec7d68a add PHP 5.5, 5.6 to .travis.yml 2014-08-29 00:56:23 +09:00
Chris Boulton
e1e40494a0 Merge pull request #206 from bc-vincent-zhao/add-enqueque-time
add an enqueued timestamp to the job payload
2014-08-08 15:08:53 +10:00
vincent zhao
006d7502d9 add an enqueued timestamp to the job payload 2014-08-08 10:25:40 +10:00
Chris Boulton
f7e9e8b7b1 Merge branch 'master' of github.com:chrisboulton/php-resque 2014-06-26 21:04:08 +10:00
Chris Boulton
bcfd6b79f7 update composer.lock 2014-06-26 21:03:46 +10:00
Chris Boulton
055587abf0 Merge pull request #158 from ruudk/default-logger
Set Resque_Log in constructor
2014-06-26 21:00:42 +10:00
Chris Boulton
1517d45904 Merge branch 'master' of github.com:chrisboulton/php-resque 2014-06-26 19:19:16 +10:00
Chris Boulton
3cca6312ca update changelog and contributors docs 2014-06-26 19:19:04 +10:00
Chris Boulton
4442e1b2f1 Merge pull request #186 from iskandar/dsn-normalization
DSN and REDIS_BACKEND normalization
2014-06-26 19:14:43 +10:00
Chris Boulton
210f0a464d Merge pull request #198 from tburry/master
Make the credis requirements less strict.
2014-06-26 19:09:48 +10:00
Chris Boulton
51524e8ebc update changelog 2014-06-26 19:09:31 +10:00
Chris Boulton
0327217907 call beforePerform before retrieving an instance of the job class 2014-06-26 19:07:52 +10:00
Todd Burry
40d2ec8c77 Make the credis requirements less strict.
Since credis has moved forward, but is backwards compatible, resque
shouldn’t be so strict towards an old version because other libraries
need newer credis features.
2014-06-23 08:20:23 -04:00
Dayson Pais
760e38c0ef Fixed syntax error 2014-05-26 22:01:49 +05:30
Dayson Pais
b242280ecd Removed erroneously introduced character. 2014-05-26 21:53:28 +05:30
Dayson Pais
65288538e3 More verbose logging if a Job throws an exception
Presently, the logger just logs the primary error message with no stack trace of additional debugging information. Type casting the exception to a string gives a much efficient output  and enables better debugging.
2014-05-26 17:16:19 +05:30
Iskandar Najmuddin
3b074a046a Revert file modes back to 644 2014-05-05 17:48:47 +00:00
Iskandar Najmuddin
76412df8fd Fix return array format of bogusDsnStringProvider 2014-05-05 15:30:36 +00:00
Iskandar Najmuddin
b0385d2959 Add comment describing REDIS_BACKEND format to bin/resque 2014-05-05 15:11:20 +00:00
Iskandar Najmuddin
506b769b90 Make parseDsn() method static, remove unused member vars 2014-05-05 15:08:00 +00:00
Iskandar Najmuddin
62ed620083 Put 'else' keyword on new line in keeping with project conventions 2014-05-05 15:00:20 +00:00
Iskandar Najmuddin
d1d2b3b354 Test for 'false' database value when not found in DSN 2014-05-05 14:55:01 +00:00
Iskandar Najmuddin
1abbad3f5e Improve comments and readability 2014-05-05 14:47:43 +00:00
Iskandar Najmuddin
ad33efbc67 Improve Resque_Redis DSN parsing.
- Allow for DSN URIs to work as expected.
- Backward-compatible with simple 'host:port' format.
- Does not parse DSNs provided in array format for Credis_Cluster.
2014-05-05 13:02:16 +00:00
Ruud Kamphuis
aeabb5bb20 Constructor on top with default logger 2013-12-20 12:24:24 +01:00
Ruud Kamphuis
cdc5c3f357 Set Resque_Log in constructor 2013-12-20 12:21:52 +01:00
Chris Boulton
610c4dcdbf Merge pull request #154 from danhunsaker/readme/howitworks
Created HOWITWORKS; cleanup of README
2013-12-13 02:27:28 -08:00
Daniel Hunsaker
3a62e47f16 Created HOWITWORKS; cleanup of README
Addresses a request from @chrisboulton in GitHub issue #149

Slight grammar cleanup and content update in README.md
Mention of HOWITWORKS.md in README.md, referring those who want to know more that direction
Expanded and slightly cleaner version of a comment made in #149 that prompted this commit/PR
   was placed in HOWITWORKS.md

Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-12-07 00:43:29 -07:00
jingyu liu
8ccc31632a repair PHP Notice, on line 17
when run <php queue.php PHP_Job>, it has a PHP Notice.
I think it's right command <php queue.php default PHP_Job>.
2013-12-06 14:14:57 +08:00
Chris Boulton
02809d6632 Merge pull request #141 from lboynton/patch-2
Fixed incorrect link to credis GitHub page
2013-12-03 03:17:34 -08:00
Chris Boulton
e1872cca39 Merge pull request #143 from HRMWeb/after-enqueue-callback-token
Added token as an argument to the afterEnqueue callback
2013-12-03 03:16:51 -08:00