LINUX.ORG.RU

История изменений

Исправление kto_tama, (текущая версия) :

	  host_pool = Pool(len(host_tasks))
	  host_results = [host_pool.apply_async(change_host_password, task) for task in host_tasks]
	  for r in host_results:
	    try:
	      a = r.get(60)
              print ...
	    except Exception as ex:
	      ... 
	      
	  host_pool.close()
	  host_pool.join()    

Исходная версия kto_tama, :

	  host_pool = Pool(len(host_tasks))
	  host_results = [host_pool.apply_async(change_host_password, task) for task in host_tasks]
	  for r in host_results:
	    try:
	      a = r.get(60)
	    except Exception as ex:
	      ... 
	      
	  host_pool.close()
	  host_pool.join()