Mike Perham
7968583fbe
Handle multiple jobs with same score, fixes #1771
2014-06-11 20:31:39 -07:00
Mike Perham
92c855383e
Polish #1761
2014-06-04 20:52:22 -07:00
Scott Meves
fa5df434ed
Rescue from ArgumentError when deserializing YAML
...
YAML.load expects the job's class to exist already. In development, classes are loaded dynamically but YAML.load does not trigger autoloading, so hitting /retries will blow up. In this event we rescue the ArgumentError, log it, and fall back to the wrapper job class name.
2014-06-04 18:54:00 -04:00
Mike Perham
051150931e
Sort queues by name
2014-05-26 12:50:00 -07:00
Mike Perham
2513884aa0
Unwrap Delayed jobs for presentation in UI, fixes #1718
...
No more massive numbers of Sidekiq::Extensions::DelayedClass jobs! Now you’ll see the underlying Class.method call instead so the UI is much more intuitive.
This might also be necessary for ActiveJob.
2014-05-19 20:54:28 -07:00
Mike Perham
88b2c6ffa6
Fully functioning remote control via Web UI, yay!
2014-05-15 21:12:44 -07:00
Mike Perham
b0aa136be6
Implement remote signals via heartbeat
2014-05-13 21:41:40 -07:00
Mike Perham
f81f09dee4
Refactor ProcessSet to yield a Sidekiq::Process
2014-05-13 20:33:20 -07:00
Mike Perham
809f0f3829
Show warning on Queues page if a queue is paused, fixes #1672
2014-04-24 22:16:34 -07:00
Jonathan Hyman
ff9475096c
Use mset instead of a loop over set for Stats#reset.
2014-03-22 00:31:50 -04:00
Jonathan Hyman
b47bbbc2a6
Pipeline queue lengths.
2014-03-22 00:30:22 -04:00
Jonathan Hyman
d0d94e876a
Use mget in History instead of making many roundtrips.
2014-03-22 00:28:35 -04:00
Jonathan Hyman
e01675980d
Rewrite ProcessSet#each to use pipelining to avoid lots of roundtrips in large Sidekiq installations.
2014-03-22 00:24:19 -04:00
Jonathan Hyman
50c4c35bde
Change some multis which just do reads to be pipelined for fasbetter perf.
2014-03-22 00:18:33 -04:00
Mike Perham
ba57fe87cc
srem doesn't take a splat, fixes #1537
2014-03-09 14:32:27 -07:00
Mike Perham
8d55757f6e
Update busy UI with latest changes
2014-03-08 14:21:52 -08: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
d233b4f650
Rename 'at' to 'beat' since it represents the time of last heartbeat, fix spec.
2014-03-08 13:57:24 -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
6f5d1d691b
merge master
2014-03-06 21:56:59 -08:00
Mike Perham
ef0abcee7c
Add new 💣 alias for #clear in API
2014-03-06 21:53:16 -08:00
Mike Perham
ff9db33666
Update Web UI, add new Busy tab with process heartbeat and job info
2014-03-06 21:30:11 -08:00
Mike Perham
ee7e181bd6
Rejigger heartbeat data to be a stable hash, not a time-based sorted set.
2014-03-02 21:18:26 -08:00
Mike Perham
bbe245e4ff
Initial pass at heartbeat, still failing tests
2014-03-02 16:36:00 -08:00
Mike Perham
a4259c96e7
merge master
2014-02-27 21:45:01 -08:00
Mike Perham
404069ab83
Add Sidekiq::Workers#prune API to remove orphaned records
2014-02-27 21:15:08 -08:00
Mike Perham
4e14845d66
merge master
2014-02-21 18:02:28 -08:00
Mike Perham
15111f3296
Merge pull request #1495 from mperham/feature/race
...
Fixes a race condition which could result in a scheduled item being adde...
2014-02-18 06:35:30 -08:00
Jonathan Hyman
b530d59025
Removes unnecessary transaction.
2014-02-18 09:11:01 -05:00
Jonathan Hyman
cecfc7f106
Fixes a race condition which could result in a scheduled item being added to the queue twice, or a retry being retried twice.
2014-02-18 09:08:43 -05:00
Mike Perham
7d2b387d94
merge 2.17.5 stuff
2014-02-15 23:49:56 -08:00
Sean Doyle
e12bf878fa
Replaced class and instance level send
...
Replaced with `__send__` from std lib
* `send` can now be overridden to be more semantically meaningful
* `message.send(user_id)` as opposed to `message.send_message(user_id)`
* `__send__` makes it clear that the reflective version is intended
2014-02-14 09:43:34 -05:00
Mike Perham
0a279e8fca
Add SortedSet#name, for subclass access
2014-02-13 21:28:56 -08:00
Mike Perham
c063b624bf
Add more testing for dead stuff
2014-02-09 21:17:05 -08:00
Mike Perham
d355a0475e
Add dead job queue, fixes #1471
2014-02-09 14:56:01 -08:00
Mike Perham
398ad5f3ea
Remove 'started' worker data
2014-02-01 20:48:44 -08:00
Blake Thomas
db0a3336a0
Allow Sidekiq::Stats#reset to reset individual stats independently
2013-12-18 10:14:33 -06:00
Mike Perham
202c48554c
Only delete one list element, not all matching. Previous behavior guaranteed worst case runtime since it scanned the entire list for every delete.
2013-11-20 14:51:58 -08:00
Aaron Ackerman
f801d44349
Use multi to allow for fewer Redis connections
2013-10-23 22:36:13 -05:00
Aaron Ackerman
d7c7bae5bd
Memoize size of a SortedSet to reduce number of calls to Redis when iterating
2013-10-23 21:30:53 -05:00
Aaron Ackerman
d6609c2abd
Handle deletion of queued jobs when iterating over a Sidekiq::Queue
2013-10-12 17:56:34 -05:00
Aaron Ackerman
ebf9956292
Handle deletion of element when iterating over a sorted set
2013-10-10 20:45:48 -05:00
Mike Perham
7a4da5d67d
Cast to float before string to ensure it's in double form, fixes #1200
2013-09-24 12:23:05 -07:00
Mike Perham
4da700eae6
API should use UTC
2013-08-15 20:06:16 -07:00
Guilherme Ceolin
a6502e68f8
Adding 'add to queue' to the list of scheduled jobs on monitor interface
2013-06-21 23:43:06 -03:00
Ravil Bayramgalin
4f5bc1d26d
Use existing variable in api to clear a queue
2013-06-20 18:14:51 +04:00
Mike Perham
f900c2a098
Transition more of the web to use the API, add enqueued_at to the Job view
2013-06-01 14:54:29 -07:00
grosser
4d885e0de3
make cleanup unnecessary by using expire
2013-05-31 09:43:11 -07:00
Mike Perham
3dda03d000
Merge branch 'patch-4' of git://github.com/dimko/sidekiq into dimko-patch-4
2013-05-24 20:12:34 -07:00
Mike Perham
f3f8760bcb
Add Sidekiq::Job#latency, fixes #949
2013-05-24 19:59:40 -07:00