Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
45032bf4
Commit
45032bf4
authored
Apr 22, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/project-export' into feature/project-import
parents
7614d230
42567436
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
lib/gitlab/import_export.rb
lib/gitlab/import_export.rb
+1
-3
lib/gitlab/import_export/saver.rb
lib/gitlab/import_export/saver.rb
+1
-1
lib/gitlab/sidekiq_middleware/memory_killer.rb
lib/gitlab/sidekiq_middleware/memory_killer.rb
+2
-2
No files found.
lib/gitlab/import_export.rb
View file @
45032bf4
...
...
@@ -3,7 +3,7 @@ module Gitlab
extend
self
def
export_path
(
relative_path
:)
File
.
join
(
storage_path
,
relative_path
,
"
#{
Time
.
now
.
strftime
(
'%Y-%m-%d_%H-%M-%3N'
)
}
_gitlab_export"
)
File
.
join
(
storage_path
,
relative_path
)
end
def
project_atts
...
...
@@ -18,8 +18,6 @@ module Gitlab
Gitlab
::
ImportExport
::
ImportExportReader
.
project_tree
end
private
def
storage_path
File
.
join
(
Settings
.
shared
[
'path'
],
'tmp/project_exports'
)
end
...
...
lib/gitlab/import_export/saver.rb
View file @
45032bf4
...
...
@@ -31,7 +31,7 @@ module Gitlab
end
def
archive_file
@archive_file
||=
File
.
join
(
@storage_path
,
'..'
,
'project.tar.gz'
)
@archive_file
||=
File
.
join
(
@storage_path
,
'..'
,
"
#{
Time
.
now
.
strftime
(
'%Y-%m-%d_%H-%M-%3N'
)
}
_project_export.tar.gz"
)
end
end
end
...
...
lib/gitlab/sidekiq_middleware/memory_killer.rb
View file @
45032bf4
...
...
@@ -29,8 +29,8 @@ module Gitlab
"in
#{
GRACE_TIME
}
seconds"
sleep
(
GRACE_TIME
)
Sidekiq
.
logger
.
warn
"sending SIG
USR1
to PID
#{
Process
.
pid
}
"
Process
.
kill
(
'SIG
USR1
'
,
Process
.
pid
)
Sidekiq
.
logger
.
warn
"sending SIG
TERM
to PID
#{
Process
.
pid
}
"
Process
.
kill
(
'SIG
TERM
'
,
Process
.
pid
)
Sidekiq
.
logger
.
warn
"waiting
#{
SHUTDOWN_WAIT
}
seconds before sending "
\
"
#{
SHUTDOWN_SIGNAL
}
to PID
#{
Process
.
pid
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment