7c355f4ee18b25fcab7c501ba0b531ac1b564350,src/python/pants/pantsd/service/store_gc_service.py,StoreGCService,run,#StoreGCService#,60
Before Change
self._lease_extension_thread.daemon = False
self._lease_extension_thread.start()
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: 7
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: home-assistant/home-assistant
Commit Name: f4c77c85bdda261abf04ea1a87bfc7df739234a7
Time: 2014-04-17
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/components/wemo.py
Class Name:
Method Name: setup
Project Name: notify-run/notify.run
Commit Name: aad5ed3e98a37bc4de2d7833de37c6bb65b7969c
Time: 2019-05-12
Author: paulgb@gmail.com
File Name: server/notify_run_server/notify.py
Class Name:
Method Name: parallel_notify