lib/oats/ragent.rb in oats-0.0.6 vs lib/oats/ragent.rb in oats-0.0.7

- old
+ new

@@ -220,10 +220,10 @@ query = { 'nickname' => occ['agent_nickname'], 'machine' => occ['agent_host'], 'port' => occ['agent_port'] } query['jobid'] = prev_jobid if prev_jobid - query['repo'] = ENV['OATS_CODE_VERSION'].to_s if ENV['OATS_CODE_VERSION'] and ENV['OATS_CODE_VERSION'] != '' + query['repo'] = ENV['OATS_TESTS_CODE_VERSION'].to_s if ENV['OATS_TESTS_CODE_VERSION'] and ENV['OATS_TESTS_CODE_VERSION'] != '' query['logfile'] = File.basename(ENV['OATS_AGENT_LOGFILE']||'agent.log') Ragent.server_logger ra, "Getting next OCC job: " + query.inspect query['password='] = ra.request[:password] if ra and ra.request[:password] # Default inactivity_timeout of 10 is not enough when OCC is restarting too # many agents. Agent gives up in 10secs but OCC hands over the job in 20secs.