7c355f4ee18b25fcab7c501ba0b531ac1b564350,src/python/pants/pantsd/service/store_gc_service.py,StoreGCService,run,#StoreGCService#,60
Before Change
self._garbage_collection_thread = threading.Thread(target=self._garbage_collect)
self._garbage_collection_thread.daemon = False
self._garbage_collection_thread.start()
while not self.is_killed:
time.sleep(1)
After Change
def run(self):
Main service entrypoint. Called via Thread.start() via PantsDaemon.run().
jobs = (self._extend_lease, self._garbage_collect)
threads = [self._launch_thread(job) for job in jobs]
while not self.is_killed:
for thread in threads:
// If any job threads die, we want to exit the `PantsService` thread to cause
// a daemon teardown.
if not thread.isAlive():
self._logger.warn("thread {} died - aborting!".format(thread))
return
thread.join(.1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: 7c355f4ee18b25fcab7c501ba0b531ac1b564350
Time: 2018-01-25
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/pantsd/service/store_gc_service.py
Class Name: StoreGCService
Method Name: run
Project Name: pantsbuild/pants
Commit Name: 7c355f4ee18b25fcab7c501ba0b531ac1b564350
Time: 2018-01-25
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/pantsd/service/store_gc_service.py
Class Name: StoreGCService
Method Name: run
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 51e7be5040ecf2ea66dea07d0911f67fde0c37f4
Time: 2015-06-23
Author: connormccoy@google.com
File Name: tests/aws_test.py
Class Name: AwsVirtualMachineExistsTestCase
Method Name: setUp
Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: bfff0cb09ae56b722c03f014337346c3a095abea
Time: 2019-04-02
Author: eldraco@gmail.com
File Name: slips.py
Class Name:
Method Name: