search for: find_firm_info_details_from_vendor

Displaying 2 results from an estimated 2 matches for "find_firm_info_details_from_vendor".

2008 Jan 03
0
Strange problem
...pdate_company_from_vendor(args = nil) thread_pool.defer(args) do |company_id| begin company = Company.find(company_id) info = company.firm_info_from_vendor # webservice call to vendor if info && info.size == 1 company.update_from_vendor!( Company.find_firm_info_details_from_vendor(info[0])) # webservice call to vendor end rescue => err logger.error "MscWorker#update_company_from_vendor failed! #{ err.class}: #{err}" end end end Part of import_contacts will result in many ask_work calls to update_company_from_vendor while it is...
2008 Jan 03
1
Memory leak and long process problem
...update_company_from_vendor(args = nil) thread_pool.defer(args) do |company_id| begin company = Company.find(company_id) info = company.firm_info_from_vendor # webservice call to vendor if info && info.size == 1 company.update_from_vendor!(Company.find_firm_info_details_from_vendor(info[0])) # webservice call to vendor end rescue => err logger.error "MscWorker#update_company_from_vendor failed! #{ err.class}: #{err}" end end end Part of import_contacts will result in many ask_work calls to update_company_from_vendor while it is...