This commit is contained in:
amartynov 2015-11-17 16:30:56 +03:00
parent ceacf07594
commit abc03bcae3
2 changed files with 1 additions and 11 deletions

View File

@ -39,7 +39,7 @@ module Provider
o = Provider.const_get(p.capitalize).new(conf)
if o.configured?
@@providers[p] = o
@@available_providers << p
ProviderFactory.add_provider p
puts "Provider '#{p}' has been loaded"
end
factory = Provider.const_get(p.capitalize + "AccountsFactory").new

View File

@ -91,11 +91,7 @@ class Worker
self.out = out
job_result = yield(out, file)
out.puts "TODO: job_result: #{job_result}"
canonical_status = (job_result == 0 ? STATUS::COMPLETED : STATUS::FAILED)
out.puts "TODO: status: #{canonical_status}"
out.flush
DevopsLogger.logger.info "TODO: res: #{job_result} status: #{canonical_status}"
update_job_status(canonical_status, job_result)
rescue StandardError, RecordNotFound => e
out << "\n #{e.class}\n #{e.message}\n"
@ -134,10 +130,4 @@ class Worker
config
end
=begin
def set_status id, status
self.class.set_status(id, status)
end
=end
end