Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
comment the horrible hack.
  • Loading branch information
jashkenas committed Mar 7, 2011
1 parent 8cd7cbc commit 963e21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cloud_crowd/models/node_record.rb
Expand Up @@ -41,7 +41,7 @@ def self.check_in(params, request)
# If the Node responds that it's overloaded, we mark it as busy. Returns
# true if the WorkUnit was dispatched successfully.
def send_work_unit(unit)
return false if unit.worker_pid
return false if unit.worker_pid #FIXME: Horrible hack.
result = node['/work'].post(:work_unit => unit.to_json)
unit.assign_to(self, JSON.parse(result.body)['pid'])
touch && true
Expand Down

0 comments on commit 963e21b

Please sign in to comment.