Commit ec7d37b4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add process wait for import

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 01a74127
......@@ -109,8 +109,10 @@ class GitlabProjects
Process.wait(pid)
end
rescue Timeout::Error
Process.kill('KILL', pid)
$logger.error "Importing project #{@project_name} from <#{@source}> failed due to timeout."
Process.kill('KILL', pid)
Process.wait
FileUtils.rm_rf(full_path)
false
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment