Class: ActiveSupport::Testing::Parallelization::RoundRobinWorkStealingDistributor
- Inherits:
-
RoundRobinDistributor
- Object
- TestDistributor
- RoundRobinDistributor
- ActiveSupport::Testing::Parallelization::RoundRobinWorkStealingDistributor
- Defined in:
- activesupport/lib/active_support/testing/parallelization/test_distributor.rb
Overview
Round-robin distributor with work stealing enabled. Tests are initially assigned round-robin as they arrive (same as RoundRobinDistributor), but when a worker exhausts its queue, it can steal work from other workers to improve load balancing.
Constant Summary
Constants inherited from RoundRobinDistributor
ActiveSupport::Testing::Parallelization::RoundRobinDistributor::WORK_WAIT_TIMEOUT
Method Summary
Methods inherited from RoundRobinDistributor
#add_test, #close, #initialize, #interrupt, #pending?, #take
Methods inherited from TestDistributor
#add_test, #close, #interrupt, #pending?, #take
Constructor Details
This class inherits a constructor from ActiveSupport::Testing::Parallelization::RoundRobinDistributor