This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.CLUSTER.terminate_cluster() | |
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/cluster.py", line 1427, in terminate_cluster | |
sg.delete() | |
File "/usr/local/lib/python2.7/dist-packages/boto-2.8.0-py2.7.egg/boto/ec2/securitygroup.py", line 88, in delete | |
return self.connection.delete_security_group(self.name) | |
File "/usr/local/lib/python2.7/dist-packages/boto-2.8.0-py2.7.egg/boto/ec2/connection.py", line 2316, in delete_security_group | |
return self.get_status('DeleteSecurityGroup', params, verb='POST') | |
File "/usr/local/lib/python2.7/dist-packages/boto-2.8.0-py2.7.egg/boto/connection.py", line 1081, in get_status | |
raise self.ResponseError(response.status, response.reason, body) | |
EC2ResponseError: EC2ResponseError: 400 Bad Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lb._cluster = cluster | |
try: | |
sge_stats_obj = lb._get_stats() | |
sge_stats = sge_stats_obj.get_all_stats() | |
self.queued_jobs = sge_stats_obj.get_queued_jobs() | |
self.running_jobs = sge_stats_obj.get_running_jobs() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean split53(int[] nums) { | |
return split_fn(0, nums, 0, 0, false, false); | |
} | |
public boolean split_fn(int start, int[] nums, int left, int right, boolean fiveLeft, boolean chosen) { | |
if (start >= nums.length) { | |
if (left == right) return true; | |
return false; | |
} | |
if (nums[start] % 5 == 0) { | |
if (!chosen) { |