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
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
Chris Boulton
0327217907
call beforePerform before retrieving an instance of the job class
2014-06-26 19:07:52 +10:00
Iskandar Najmuddin
3b074a046a
Revert file modes back to 644
2014-05-05 17:48:47 +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
b3c93367e8
Merge pull request #127 from ptrofimov/bug/establishConnection
...
Resque/Worker: removed reestablishConnection
2013-09-06 18:04:18 -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
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
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
Ruud Kamphuis
2794dd54a9
Merge branch 'blocking-list-pop' of github.com:ruudk/php-resque into blocking-list-pop
...
Conflicts:
bin/resque
lib/Resque.php
lib/Resque/Job.php
2013-05-29 09:31:53 +02:00
Ruud Kamphuis
bfbff5e58e
Unit tests pass
2013-05-29 09:29:24 +02:00
Ruud Kamphuis
f379d3a36d
Fixed unit test
2013-05-29 09:17:06 +02:00
Ruud Kamphuis
86ae77811d
Working blocking list pop :)
2013-05-29 09:17:06 +02:00
Ruud Kamphuis
b8f98eecd2
WIP
2013-05-29 09:14:18 +02:00
Ruud Kamphuis
4d5552867a
Basic support for blocking list pop
2013-05-29 09:14:17 +02:00
Chris Boulton
37cdec8e11
Merge pull request #107 from danhunsaker/feature-queue-failure
...
Added enqueue failure detection
2013-05-28 18:19:01 -07: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
CyrilMazur
e4ea683def
Update Job.php
...
Previous code was encapsulating $args in an additional array, and thus breaking the new job $args.
2013-04-16 13:07:03 -03:00
Ruud Kamphuis
66fec608a1
Fixed unit test
2013-03-13 13:03:19 +01:00
Ruud Kamphuis
c2c4d06f7b
Working blocking list pop :)
2013-03-13 12:41:32 +01:00
Ruud Kamphuis
132531e1a2
WIP
2013-03-12 11:28:25 +01:00
Ruud Kamphuis
5687c8fe82
Merge branch 'master' of git://github.com/chrisboulton/php-resque into blocking-list-pop
...
Conflicts:
lib/Resque.php
lib/Resque/RedisCluster.php
lib/Resque/Worker.php
2013-03-11 22:40:36 +01:00
Chris Boulton
4cbf3c08c2
Merge pull request #89 from trimbletodd/master
...
Adding support for remote redis instances (such as redistogo) that require authentication
2013-03-06 19:55:01 -08:00