#891: done
This commit is contained in:
parent
ceacf07594
commit
abc03bcae3
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user