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 ...@@ -109,8 +109,10 @@ class GitlabProjects
Process.wait(pid) Process.wait(pid)
end end
rescue Timeout::Error rescue Timeout::Error
Process.kill('KILL', pid)
$logger.error "Importing project #{@project_name} from <#{@source}> failed due to timeout." $logger.error "Importing project #{@project_name} from <#{@source}> failed due to timeout."
Process.kill('KILL', pid)
Process.wait
FileUtils.rm_rf(full_path) FileUtils.rm_rf(full_path)
false false
else 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