Lance Ivy
a382cb9a73
final name: average_scheduled_poll_interval
2015-05-04 10:38:10 -07:00
Lance Ivy
4255aaf0c2
make the average global poller delay configurable
2015-04-24 19:31:58 -07:00
Lance Ivy
add012aa0c
calculate each poll interval in a tighter range with the same average
...
this makes the randomness more reliable by reducing the worst case
outliers: polling too much or too little.
2015-04-24 09:00:58 -07:00
Mike Perham
e5b184d476
More Pro 2 notes
2015-01-29 11:39:41 -08:00
Mike Perham
339571a4e0
Extract enqueue logic, #2159
2015-01-27 15:07:56 -08:00
Jonathan Hyman
70e61dbe71
Remove 10 second wait in Poller if the poll interval is already set, since there's no reason to wait for the heartbeats.
2015-01-27 17:56:01 -05:00
Mike Perham
2b80dfcce9
Give credit for #1984
2014-10-06 08:58:37 -07:00
Mike Perham
3016747846
Terminology: message -> job
2014-10-06 08:53:25 -07:00
Mike Perham
d54dc1c677
Refactor #1984
2014-10-06 08:53:06 -07:00
Chris TenHarmsel
5590669023
Added method to Util module to clean up process records that don't have
...
a matching heartbeat record, indicating that they're no longer alive.
Added call to this new util method in the Schedule::Poller.poll_interval
method because the number of live processes is used as a multiplier for
the default wait interval. Since the value for poll_interval is
memoized this call to 'cleanup_dead_process_records' should only be
called once at startup.
2014-10-04 17:31:10 -05:00
Evan Prothro
83893aa122
fixup to poll_interval logic, so calling poll_interval= has expected behavior
2014-08-01 15:00:17 -05:00
Mike Perham
20cf90d003
Randomize initial scheduler timing
2014-06-07 20:57:33 -07:00
Mike Perham
eac17801bd
Add logic to self-tune the poll_interval based on available
...
heartbeat info.
Fixes #1630
2014-06-07 15:12:31 -07:00
Mike Perham
c2f09b7a05
Remove 'at' property so it doesn't confuse Client
2013-05-24 20:34:26 -07:00
Dimko
c7828f1fb8
Scheduled and retry jobs now executes client middleware
2013-05-24 16:31:55 +04:00
Mario Visic
fabe0e0fed
Scheduled and retry jobs add an enqueued_at time when they are put into the queue
2013-05-24 13:32:49 +10:00
Mike Perham
55726ca900
Add Sidekiq::Actor which provides a testable alternative to Celluloid
2013-05-10 22:12:44 -07:00
Mike Perham
2b8e3bd9ed
Use lpush, not rpush, when scheduling/retrying work
2013-04-17 09:45:09 -07:00
Brian Durand
89180968f9
update code documentation on scheduled poller
2013-04-11 00:43:34 -07:00
Brian Durand
0c76c3bade
Change poller to pop messages one at a time so they don't get lost if something goes wrong during a large pop operation.
2013-04-10 17:38:36 -07:00
Mike Perham
86591fe9e3
Rescue any scheduler thread error, fixes #309
2013-04-04 11:52:32 -07:00
Jacek Becela
aa56400379
Update lib/sidekiq/scheduled.rb
...
Catch Redis::TimeoutError, Redis::ConnectionError thrown by Redis client on networking errors.
See: https://github.com/redis/redis-rb/blob/master/lib/redis/client.rb#L200
2012-08-16 11:42:57 +03:00
Mike Perham
1ee0d5e9b0
Fix networking errors causing scheduler to die [ #309 ]
2012-07-30 10:23:34 -07:00
Kyle Drake
e2b23976b8
fix poll interval for scheduling
2012-07-15 23:11:38 -07:00
Mike Perham
b891ed4d21
scheduled jobs should touch queues, #281
2012-07-06 21:59:47 -07:00
Jon Hinson
ada51e6176
Make poll interval configurable
2012-06-19 15:39:20 -05:00
Mike Perham
82da2cd62b
Add random jitter to scheduler polling [ #247 ]
2012-06-14 08:36:00 -07:00
Mike Perham
2c4be4cada
Scheduled jobs! Bump to 2.0.0.
...
Performs can now be scheduled at arbitrary points in the future.
2012-05-25 20:21:42 -07:00