Mike Perham
3bee1ad7b9
Busy page should show proper TID and JID
2014-03-19 20:12:12 -07:00
Mike Perham
8f49ee96ac
Remove global 'busy' counter, too easy to skew in the face of crashy processes
2014-03-08 14:10:27 -08:00
Mike Perham
ba8c8a57b9
Rework process/worker data model.
...
We no longer have a global 'workers' set but rather a global 'processes' set. Each process has its own workers hash, keyed by thread id.
Rely as much as possible on Redis key expiration to naturally prune any lingering data. Process data only has a one minute TTL, with the heartbeat refreshing the TTL, so it will expire quickly after a process dies.
2014-03-07 22:41:10 -08:00
Mike Perham
bbe245e4ff
Initial pass at heartbeat, still failing tests
2014-03-02 16:36:00 -08:00
Mike Perham
f39be47e64
Add global error handler feature
2014-02-24 20:47:44 -08:00
Mike Perham
b56d97ef72
merge master
2014-02-24 20:06:48 -08:00
Jonathan Hyman
a32fdd5c4d
Sleep before retrying.
2014-02-24 16:10:58 -05:00
Jonathan Hyman
fda80127d0
Update comment.
2014-02-24 16:10:07 -05:00
Jonathan Hyman
a39a32b8e8
Update comment.
2014-02-24 16:09:29 -05:00
Jonathan Hyman
f761c674a4
Retry all exceptions.
2014-02-24 16:08:57 -05:00
Jonathan Hyman
0a58b7f4f6
Swallow (and attempt to retry) Redis timeout errors when updating stats. This is so code which calls #stats does not conflate job failures with stats failures.
2014-02-24 14:58:35 -05:00
Mike Perham
25147c6653
Remove defer support, required for large execution stacks on Ruby 1.9
2014-02-01 20:49:42 -08:00
Mike Perham
398ad5f3ea
Remove 'started' worker data
2014-02-01 20:48:44 -08:00
Mike Perham
3a6cadce49
Marshal arguments to avoid worker mutation, fixes #1452
2014-01-27 20:29:19 -08:00
Mike Perham
cd15131998
More robust shutdown logic, less round-trips to Redis
2013-11-17 13:23:26 -08:00
Mike Perham
06acbd4f60
Avoid calling processor during hard shutdown, fixes #997
2013-06-10 22:20:15 -07:00
Mike Perham
4e66339f65
Modern celluloid now stable for testing purposes, yay!
2013-06-07 22:15:13 -07:00
Mike Perham
16806be05e
Bring back defer in MRI 1.9, fixes #985
2013-06-06 19:20:53 -07:00
grosser
4d885e0de3
make cleanup unnecessary by using expire
2013-05-31 09:43:11 -07:00
Mike Perham
beaec4422f
Switch to threaded tasks, see also celluloid/celluloid#251
2013-05-12 13:57:55 -07:00
Mike Perham
5db5c938ac
Upgrade to Celluloid 0.14, remove defer usage, fixes #919
2013-05-11 16:12:12 -07:00
Mike Perham
55726ca900
Add Sidekiq::Actor which provides a testable alternative to Celluloid
2013-05-10 22:12:44 -07:00
Mike Perham
7e094567a5
Remove timeout middleware and worker option, fixes #862
2013-04-18 09:11:49 -07:00
Mike Perham
b765168d93
old junk
2013-03-26 22:57:02 -07:00
Mike Perham
cfae522adf
Raise within any workers which haven't finished within the hard timeout, fixes #377
2013-03-26 22:56:49 -07:00
Mike Perham
d95f0f3f6e
Don't override to_s
2013-03-26 22:55:07 -07:00
Mike Perham
7408387ee0
Refactor fetch strategy, fix queueing to lpush and rpop.
2013-01-05 21:17:08 -08:00
Mike Perham
67699419c2
cleanup
2012-12-19 09:38:47 -08:00
Brandon Hilkert
095331792d
Add History to Stats API.
2012-12-05 22:09:34 -05:00
Mike Perham
0981f27ab6
Allow access to the JID via #jid, fixes #496
2012-11-03 20:00:06 -07:00
Mike Perham
110cc1dc42
Update Celluloid API usage, use .async, fixes #500
2012-11-03 19:56:06 -07:00
Mike Perham
f04e1ecbec
Use core_ext for constantize and stringify_keys
2012-10-27 12:48:34 -07:00
Dave Katten
61dc13b1db
Add Bignum to the list of classes which cannot be duped.
2012-10-18 09:28:51 -05:00
Mike Perham
c6cb222e96
cleanup cleanup
2012-09-16 07:28:25 -07:00
Mike Perham
4cc5514755
Cleanup
2012-09-16 07:27:49 -07:00
Mike Perham
8343fe0039
Use defer, fixes #398
2012-09-13 09:16:24 -07:00
Mike Perham
c03d857362
Use Socket.gethostname, #393
2012-09-10 20:27:40 -07:00
Mike Perham
430f6a9497
Revert "enable thread tasks"
...
This reverts commit d1c1406239
.
2012-09-08 19:45:07 -07:00
Mike Perham
d1c1406239
enable thread tasks
2012-09-02 15:39:27 -07:00
Mike Perham
25df7abbee
Use latest Celluloid with thread tasks
2012-09-01 20:00:57 -07:00
Mike Perham
7b0c19941b
Catch exception rather than standarderror
2012-08-22 09:44:08 -07:00
Mike Perham
bd04dcc036
Revert Celluloid's exclusive mode
2012-08-16 18:12:25 -07:00
Mike Perham
0b990a4adf
Make exclusive opt-in, fixes #347
2012-08-15 09:07:53 -07:00
Mike Perham
58db628a82
Update singletons
2012-08-05 20:53:59 -07:00
Mike Perham
8357fa3e4b
Clone arguments before calling workers to avoid mutation [ #265 ]
2012-08-04 12:11:46 -07:00
Mike Perham
36801315d6
Rework error handling to work with watchdog
2012-08-02 20:48:49 -07:00
Mike Subelsky
0622ac3192
extract error handling middleware into processor-level code
2012-07-31 14:30:34 -04:00
Mike Perham
3d869cd5b3
Use Celluloid's exclusive mode to avoid tiny Fiber stack
2012-06-29 20:37:45 -07:00
Mike Perham
7a45208cf0
Defer loading message JSON until a full stack is available.
2012-06-21 20:51:47 -07:00
Mike Perham
017ba262ce
Doc update, bump version
2012-06-12 21:55:06 -07:00