mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
added sleep delay configurable
This commit is contained in:
parent
487c600b11
commit
44958c79bb
2 changed files with 4 additions and 2 deletions
|
@ -153,7 +153,7 @@ namespace :company_status do
|
|||
end
|
||||
|
||||
def sort_companies_to_files(contact:, missing_companies_in_business_registry_path:, deleted_companies_from_business_registry_path:, soft_delete_enable:)
|
||||
sleep 1
|
||||
sleep ENV['business_registry_sleep_time'].present? ? ENV['business_registry_sleep_time'].to_i : 2
|
||||
resp = contact.return_company_details
|
||||
|
||||
if resp.empty?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue