@@ -516,34 +516,34 @@ def start(self):
516516
517517 logger .debug ("Workers started" )
518518
519- self . _task_puller_thread = threading .Thread (target = self .pull_tasks ,
520- args = (self ._kill_event ,),
521- name = "Task-Puller" )
522- self . _result_pusher_thread = threading .Thread (target = self .push_results ,
523- args = (self ._kill_event ,),
524- name = "Result-Pusher" )
525- self . _worker_watchdog_thread = threading .Thread (target = self .worker_watchdog ,
526- args = (self ._kill_event ,),
527- name = "worker-watchdog" )
528- self . _monitoring_handler_thread = threading .Thread (target = self .handle_monitoring_messages ,
529- args = (self ._kill_event ,),
530- name = "Monitoring-Handler" )
531-
532- self . _task_puller_thread .start ()
533- self . _result_pusher_thread .start ()
534- self . _worker_watchdog_thread .start ()
535- self . _monitoring_handler_thread .start ()
519+ thr_task_puller = threading .Thread (target = self .pull_tasks ,
520+ args = (self ._kill_event ,),
521+ name = "Task-Puller" )
522+ thr_result_pusher = threading .Thread (target = self .push_results ,
523+ args = (self ._kill_event ,),
524+ name = "Result-Pusher" )
525+ thr_worker_watchdog = threading .Thread (target = self .worker_watchdog ,
526+ args = (self ._kill_event ,),
527+ name = "worker-watchdog" )
528+ thr_monitoring_handler = threading .Thread (target = self .handle_monitoring_messages ,
529+ args = (self ._kill_event ,),
530+ name = "Monitoring-Handler" )
531+
532+ thr_task_puller .start ()
533+ thr_result_pusher .start ()
534+ thr_worker_watchdog .start ()
535+ thr_monitoring_handler .start ()
536536
537537 logger .info ("Manager threads started" )
538538
539539 # This might need a multiprocessing event to signal back.
540540 self ._kill_event .wait ()
541541 logger .critical ("Received kill event, terminating worker processes" )
542542
543- self . _task_puller_thread .join ()
544- self . _result_pusher_thread .join ()
545- self . _worker_watchdog_thread .join ()
546- self . _monitoring_handler_thread .join ()
543+ thr_task_puller .join ()
544+ thr_result_pusher .join ()
545+ thr_worker_watchdog .join ()
546+ thr_monitoring_handler .join ()
547547 for proc_id in self .procs :
548548 self .procs [proc_id ].terminate ()
549549 logger .critical ("Terminating worker {}: is_alive()={}" .format (self .procs [proc_id ],
0 commit comments