538767b4977d1bd14679ae555b7705088a7e5a16,distributed/deploy/local.py,LocalCluster,close,#LocalCluster#Any#,274

Before Change


            for w in self.workers:
                self.loop.add_callback(self._stop_worker, w)
            for i in range(10):
                if not self.workers:
                    break
                else:
                    sleep(0.01)
            del self.workers[:]
            try:
                self._loop_runner.run_sync(self._close, callback_timeout=timeout)
            except RuntimeError:  // IOLoop is closed

After Change


        if not self.asynchronous:
            self._loop_runner.stop()

        return result

    @gen.coroutine
    def scale_up(self, n, **kwargs):
         Bring the total count of workers up to ``n``
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dask/distributed
Commit Name: 538767b4977d1bd14679ae555b7705088a7e5a16
Time: 2018-12-23
Author: mrocklin@gmail.com
File Name: distributed/deploy/local.py
Class Name: LocalCluster
Method Name: close


Project Name: pantsbuild/pants
Commit Name: dbf744f0af02efeab9fefc708292786385aec030
Time: 2020-10-08
Author: greg.shuflin@toolchain.com
File Name: src/python/pants/bin/remote_pants_runner.py
Class Name: RemotePantsRunner
Method Name: _connect_and_execute


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2
Time: 2015-07-01
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: _Exists