1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/test
Fernando Seror 63ee43353b JobSet#each goes through elements in descending score order
The current implementation of the #each method uses Redis.zrange to
paginate the iteration and use multiple lightweight calls. It performs
this pagination in descending score order, but each page is returned
from Redis in ascending order. The result is that the final iteration
through the whole set is not sorted properly. Here's an example with a
page of size 3:

Redis set: 1, 2, 3, 4, 5, 6, 7, 8, 9
JobSet.to_a: 7, 8, 9, 4, 5, 6, 1, 2, 3

This fixes it with barely no performance cost (each page is reverted in
Ruby) and all the items are perfectly sorted in descending score order.
2017-11-01 16:12:51 -07:00
..
fixtures Allow dynamic sidekiq-web locale paths, for localized extensions, fixes #1261 2013-10-21 12:07:18 -07:00
config.yml Dont use logger in options parsing, fixes #1335 2013-11-13 21:33:44 -08:00
env_based_config.yml Clean up option processing 2013-01-18 20:57:26 -08:00
fake_env.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
helper.rb Remove percy, the Web UI doesn’t change enough to justify the complex dependency 2017-06-06 14:54:20 -07:00
test_actors.rb Disable delay extensions by default, fixes #3174 (#3299) 2017-01-04 10:30:42 -08:00
test_api.rb JobSet#each goes through elements in descending score order 2017-11-01 16:12:51 -07:00
test_cli.rb Remove more USR1 references 2017-01-03 15:41:48 -08:00
test_client.rb Refactor Worker.set impl so it can be memoized, fixes #3602 2017-09-12 10:49:05 -07:00
test_dead_set.rb Unified Job kill via Sidekiq::DeadSet#kill 2017-08-11 12:33:12 -07:00
test_exception_handler.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_extensions.rb Ensure Sidekiq.enable_delay! does not break Psych. 2017-07-29 08:49:54 +02:00
test_fetch.rb Remove namespace usage within test suite 2017-03-24 11:01:45 -07:00
test_launcher.rb Rewrite heartbeat so we can dynamically update tags/labels, #2867 2016-11-25 13:39:22 -08:00
test_logging.rb Fix minitest warnings (#3300) 2017-01-02 12:06:02 -08:00
test_manager.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_middleware.rb Custom job_logger_class 2017-06-07 10:20:31 -07:00
test_processor.rb When a middleware mutates arguments, retry with original args 2017-08-11 16:33:55 -07:00
test_rails.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_redis_connection.rb redis-rb 4.0 support 2017-09-28 21:54:06 -07:00
test_retry.rb Rework job processing in light of Rails 5's Reloader (#3235) 2017-01-17 14:58:08 -08:00
test_retry_exhausted.rb Fix overriding class_attribute core extension from ActiveSupport with Sidekiq one 2017-06-06 08:10:08 -07:00
test_scheduled.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_scheduling.rb Fix the error in worker#perform_in about interval type (#3170) 2016-09-30 02:31:08 -07:00
test_sidekiq.rb Put source encoding comment as line for (j)ruby 1.9 compatibility (#3255) 2016-11-22 20:39:00 -08:00
test_testing.rb Fix overriding class_attribute core extension from ActiveSupport with Sidekiq one 2017-06-06 08:10:08 -07:00
test_testing_fake.rb timing is everything 2017-06-21 13:21:11 -07:00
test_testing_inline.rb Disable delay extensions by default, fixes #3174 (#3299) 2017-01-04 10:30:42 -08:00
test_util.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_web.rb Remove percy, the Web UI doesn’t change enough to justify the complex dependency 2017-06-06 14:54:20 -07:00
test_web_helpers.rb Improve parsing of HTTP_ACCEPT_LANGUAGE (continue Nate's work) (#3449) 2017-05-01 10:47:51 -07:00