c00w/bitHopper — Issue #518: BUG: Threshold penalty for backup pools
Author: paraipan
Created: 2011-11-18 00:57:20+00:00
State: open

Setting "penalty:" for any backup pool doesn't seem to work here, bH ends with this error:

Traceback (most recent call last):
File "bitHopper.py", line 311, in
main()
File "bitHopper.py", line 281, in main
bithopper_instance.select_best_server()
File "bitHopper.py", line 134, in select_best_server
server_list, backup_list = self.scheduler.select_best_server()
File "/home/alex/bitHopper/scheduler.py", line 648, in select_best_server
return server_list, self.select_backup_server()
File "/home/alex/bitHopper/scheduler.py", line 100, in select_backup_server
backup_servers.sort()
File "/home/alex/bitHopper/pool_class.py", line 74, in __lt__
rr_self += self.get('penalty', 0.0)
TypeError: unsupported operand type(s) for +=: 'float' and 'str'