Commit Graph

287 Commits

Author SHA1 Message Date
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
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
Chris Boulton
d2c3249c7e Merge pull request #147 from benjisg/patch-1
Fixes the examples for using VERBOSE and VVERBOSE
2013-12-03 03:15:36 -08:00
Benji
b7e3ee5221 Fixes the examples for using VERBOSE and VVERBOSE
The example for the VERBOSE and VVERBOSE options would throw a 'command not found' error when attempting to use it in the same manner as it was originally documented.
2013-11-24 17:27:36 -08:00
Michael Alexander
f91352d810 Renamed references of token to id. 2013-11-18 10:02:03 +11:00
Michael Alexander
6d8cd501b7 Added token as an argument to the afterEnqueue callback 2013-11-12 13:11:48 +11:00
Lee Boynton
473d610a27 Fixed incorrect link to credis GitHub page 2013-11-04 11:58:23 +00:00
Chris Boulton
b0843f4dba Merge pull request #126 from Olden/bug/logger
Fix notice for: 'Undefined variable: logger'
2013-09-06 18:04:56 -07:00
Chris Boulton
b3c93367e8 Merge pull request #127 from ptrofimov/bug/establishConnection
Resque/Worker: removed reestablishConnection
2013-09-06 18:04:18 -07:00
Chris Boulton
7f2cba1553 Merge pull request #131 from richardkmiller/updateProcLine-php5.5
Let Resque_Worker::updateProcLine() use PHP 5.5's cli_set_process_title() if available
2013-09-06 18:03:51 -07:00
Richard K Miller
9335ef51b4 fix spaces that should be tabs 2013-09-04 16:12:12 -06:00
Richard K Miller
6ed8fc048f refactor process title to keep it DRY 2013-09-04 12:29:38 -06:00
Richard K Miller
62dfa93458 cli_set_process_title() available in PHP 5.5 to set proc title. This is preferred over the PECL function setproctitle(). 2013-09-04 10:30:35 -06:00
Petr Trofimov
10c1d0b75e Resque/Worker: removed reestablishConnection 2013-08-23 12:17:47 +03:00
Alexander Kotynia
03d31830d1 Fix notice for: 'Undefined variable: logger' 2013-08-22 11:32:56 +03:00
Chris Boulton
468f1ce78a Merge pull request #115 from Rockstar04/logging
PSR-3 Compliant Logging
2013-08-15 22:49:33 -07:00
Chris Boulton
b5ce47a8a1 Merge pull request #118 from rajibahmed/master
Add github flavoured syntax highlights on README
2013-08-15 22:45:37 -07:00
Rajib Ahmed
14989b0e9e Remove spaces from README code samples. 2013-07-18 11:51:02 +02:00
Rajib Ahmed
2d4458fbed Add fix to syntax highlights. 2013-07-18 09:57:53 +02:00
Rajib Ahmed
271b584957 Add github style syntax highlights on README file. 2013-07-18 09:53:30 +02:00
Trent Petersen
25a804d93d Convert indentation in the Worker class.... to . . . . tabs
This was painful for me as a PSR 1-2 follower
2013-07-10 10:07:19 -05:00
Chris Boulton
a1cfc292d4 Merge pull request #116 from acinader/master
Doc nit
2013-07-04 01:55:26 -07:00
Arthur Cinader
88f494e7ce Update README.md
Remove redundant use of "include" in documentation
2013-07-03 21:12:10 -07:00
Rockstar04
5cef885a06 Look for a var in the bin/resque script to allow override 2013-06-25 12:10:08 -07:00
Rockstar04
726e58a297 Added basic logging class for a fallback
Corrected unit tests for new code

Add partial unit coverage for logging class

Add newline to logTest file
2013-06-25 12:01:50 -07:00
Rockstar04
7aa9abdb2e Added PSR3 to composer dependencies 2013-06-25 08:56:28 -07:00
Chris Boulton
59f617e639 Merge pull request #63 from ruudk/blocking-list-pop
Basic support for blocking list pop
2013-06-12 01:09:11 -07:00