summaryrefslogtreecommitdiff
path: root/lib/task.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-05-20 13:26:06 +0000
committerChristoph Helma <helma@in-silico.ch>2011-05-20 13:26:06 +0000
commit4f7bd464f0676c2cebdcd8a46c1ac79c4ec86cde (patch)
treec16d874de086ee46700343a3dd985389a4b08ac1 /lib/task.rb
parent8c78bf2358338cf5f795a65c9b1c21a48474169f (diff)
parent41851663e591433fec1b021b88aa77a8fb0d37b0 (diff)
Merge branch 'master' into development
Conflicts: lib/algorithm.rb lib/helper.rb
Diffstat (limited to 'lib/task.rb')
-rw-r--r--lib/task.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/task.rb b/lib/task.rb
index 19f42d6..42d3d17 100644
--- a/lib/task.rb
+++ b/lib/task.rb
@@ -38,6 +38,7 @@ module OpenTox
task = Task.new(task_uri.chomp)
# measure current memory consumption
+=begin
memory = `free -m|sed -n '2p'`.split
free_memory = memory[3].to_i + memory[6].to_i # include cache
if free_memory < 20 # require at least 200 M free memory
@@ -56,6 +57,7 @@ module OpenTox
# return task
# #raise "Server too busy to start a new task"
#end
+=end
task_pid = Spork.spork(:logger => LOGGER) do
LOGGER.debug "Task #{task.uri} started #{Time.now}"