85197deece837a1f4ffdbbffb72af6028a9b6e32,python/ray/autoscaler/_private/resource_demand_scheduler.py,ResourceDemandScheduler,_legacy_worker_node_to_launch,#ResourceDemandScheduler#Any#Any#Any#Any#,172

Before Change


        
        if self.max_workers == 0:
            return {}
        elif pending_nodes or len(nodes) > 1:
            // If we are already launching a worker node.
            // If first worker node fails this will never launch more nodes.
            return {}

After Change


        workers, it returns max(1, min_workers) worker nodes from which we
        later calculate the node resources.
        
        worker_nodes = self.provider.non_terminated_nodes(
            tag_filters={TAG_RAY_NODE_KIND: NODE_KIND_WORKER})
        if self.max_workers == 0:
            return {}
        elif sum(launching_nodes.values()) + len(worker_nodes) > 0:
            // If we are already launching a worker node, wait for its resources
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 85197deece837a1f4ffdbbffb72af6028a9b6e32
Time: 2020-11-11
Author: ameerh@berkeley.edu
File Name: python/ray/autoscaler/_private/resource_demand_scheduler.py
Class Name: ResourceDemandScheduler
Method Name: _legacy_worker_node_to_launch


Project Name: ray-project/ray
Commit Name: 85197deece837a1f4ffdbbffb72af6028a9b6e32
Time: 2020-11-11
Author: ameerh@berkeley.edu
File Name: python/ray/autoscaler/_private/resource_demand_scheduler.py
Class Name: ResourceDemandScheduler
Method Name: _infer_legacy_node_resources_if_needed


Project Name: NifTK/NiftyNet
Commit Name: c82a4378c85282faaf7b53b86b757bf3894d2602
Time: 2018-05-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/dataset_sampler/sampler_random_vector_v2.py
Class Name: RandomVectorSampler
Method Name: __init__