Daniel Mason
493c12846a
Switched IF Statement order to prevent excess calls to redis.
2020-01-10 11:35:56 +13:00
Daniel Mason
19f21219f8
1.4.5 patch - formatting + composer replace
2019-08-28 10:06:52 +12:00
Daniel Mason
4e87677517
- Updated README to include supervisor configuration.
...
- Change logfile date format to `%Y-%m-%d %T`.
- Added return types to more functions.
2018-07-16 09:59:58 +12:00
Daniel Mason
f69330d637
Update Docs
2018-06-22 20:13:19 +12:00
Daniel Mason
bd0a0c2dc8
Readd Credis
2018-05-30 19:05:13 +12:00
Daniel Mason
493d6dc6d8
Added 48 hour TTL to worker:xxx:started keys to prevent db pollution
2018-05-30 08:25:02 +12:00
Daniel Mason
0d0c0d0a7e
- Updated travis builds to run on PHP 7.0, 7.1 and 7.2.
...
- Added ability to specify multiple log levels. [DEBUG/INFO/NOTICE/WARNING/ERROR/CRITICAL/ALERT/EMERGENCY]
- Default is now .
- Removed VERBOSE / VVERBOSE flags.
- Enabled date/time logging by default.
2018-05-29 22:20:56 +12:00
Daniel Mason
51fda513f4
Global reformat
2018-05-25 21:03:48 +12:00
Daniel Mason
1b044f2b7d
Passing pipelines
2018-05-25 20:52:20 +12:00
Daniel Mason
1085ac2412
Trying to pass builds..
2018-05-25 20:24:00 +12:00
Daniel Mason
44413588f4
basic redis tests passing
2018-05-25 20:11:17 +12:00
Daniel Mason
c862009505
Enable redis server in travis for testing
2018-05-25 19:53:55 +12:00
Daniel Mason
ae84530132
- Reformatted files to PSR2 standard
...
- Removed credis for native phpredis
- Tidied up some docs
- Setting up new travis.ci build
2018-05-25 19:26:54 +12:00
Petr Kotek
b054df780f
Resque_Redis: use &&
rather than and
2016-10-20 23:58:23 +02:00
Chris Boulton
8113e624c4
use a mock to test correct redis exceptions are surfaced
2016-10-15 01:50:45 -07:00
Chris Boulton
b1911f6867
maintain previous credis exception when throwing redis exceptions from resque
2016-10-14 15:03:18 -07:00
Chris Boulton
af570212b3
add Resque_RedisException
2016-10-14 15:03:18 -07:00
Chris Boulton
81cb92b964
throw Resque_RedisException whenever an errror connecting/talking to redis occurs
2016-10-14 15:03:17 -07:00
Chris Boulton
ee9f133bf9
Merge pull request #303 from serroba/BIG-28720
...
Allowing to use a factory instead of manually instantiate the Jobs
2016-10-14 14:56:45 -07:00
Sebastian Machuca
be19e12c31
Making the factory the default layer to construct jobs
2016-10-14 14:41:19 +11:00
Sebastian Machuca
df20186c37
Convert spaces to tabs
2016-10-13 14:45:02 +11:00
Sebastian Machuca
8f542e5035
Making the factory responsible to set the arguments and the queue
2016-10-12 19:22:31 +11:00
Chris Boulton
3cead7dbb6
Merge pull request #226 from andrewbrereton/patch-1
...
gethostname() doesn't work on Amazon's EC2
2016-10-11 12:11:19 -07:00
Chris Boulton
5de9073562
Merge pull request #298 from lauripiisang/patch-1
...
Add support for unprotected unix socket
2016-10-11 12:04:47 -07:00
Keyan Pishdadian
ae308ff1fd
Allow empty prefix
2016-10-07 18:31:06 -04:00
Sebastian Machuca
de22db6826
Making it compatible with PHP < 5.5
...
Making the factory receive the classname
2016-10-06 16:07:16 +11:00
Sebastian Machuca
7d2ce1bc8b
BIG-28720 Allowing to use a factory instead of manually instantite the Jobs
2016-10-06 12:54:41 +11:00
lauripiisang
da9d780db1
Return false
for 'database' section of unix DSNs
...
This seems to be the expected default value
2016-08-29 18:17:04 +03:00
Chris Boulton
08de86a41e
Merge pull request #197 from epicwhale/patch-1
...
More verbose logging if a Job throws an exception
2016-08-15 18:42:37 -07:00
lauripiisang
4b85638ccf
Add support for unprotected unix socket
...
- You can now provide a unix socket based redis connection:
- `Resque::setBackend('unix:///path/to/redis.sock')`
- username/password/db in unix socket dsn currently unsupported:
- This middle layer for Dsn parsing seemed too clunky for me to introduce user/pass/db parsing for unix sockets.
2016-08-15 16:33:18 +03:00
Ruud Kamphuis
91caca7921
Move declare(ticks = 1) to top
2016-08-03 20:40:30 +02:00
Ruud Kamphuis
16f88a6a38
Move declare(ticks = 1) to startup
...
Having declare(ticks = 1) inside registerSigHandlers() worked perfectly on PHP 5.6 but it doesn't on PHP 7.
I found it that moving the declare(ticks = 1) outside registerSigHandlers() solves the issue.
2016-08-03 17:07:52 +02:00
Chris Boulton
ab07fda51c
Merge pull request #290 from luishdez/master
...
Fix OSX worker warning and cli_set_process_title
2016-07-14 18:21:10 +10:00
Chris Boulton
fe04cca530
Merge pull request #285 from donkeyworks/master
...
should be able to use maxConnectRetries
2016-07-14 17:28:49 +10:00
Luis Hdez
70102f1b89
Add control for OS X and cli_set_process_title
2016-03-30 03:15:01 +02:00
Luis Hdez
e4cfc541c9
Fix CS whitespaces
2016-03-30 03:14:15 +02:00
Bjoern Boschman
b3b1d408e5
removed all closing PHP tags
2016-03-08 12:19:05 +01:00
Rolf Vreijdenberger
0d5cff54ad
should be able to use maxConnectRetries
...
- be able to specify max_connect_retries in the dsn string as part of the query string
2016-01-26 14:54:02 +01:00
Matthew Turland
570e4a9e55
Corrected type in Resque_Job::$payload docblock
...
The docblock for the $payload property in the Resque_Job class is object, which is inconsistent with the array type used for the corresponding constructor parameter. Other usage of the $payload property, such as in updateStatus(), indicate that array seems to be correct.
2015-05-12 15:07:20 -05:00
Magnus Persson
5aed917f72
Resolves chrisboulton/php-resque#145
2015-03-11 23:41:12 +01:00
Chris Boulton
2308c3ced4
update phpdoc
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
Dayson Pais
2c8b215cda
Implicitly type cast exception while logging.
...
Removed the unnecessary (string) type-casting.
2014-11-08 15:11:20 +05:30
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
Wedy Chainy
98fde571db
Turn on redis command 'rename'
2014-09-19 21:29:53 +10:00
vincent zhao
006d7502d9
add an enqueued timestamp to the job payload
2014-08-08 10:25:40 +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
4442e1b2f1
Merge pull request #186 from iskandar/dsn-normalization
...
DSN and REDIS_BACKEND normalization
2014-06-26 19:14:43 +10:00