Skip to content
Snippets Groups Projects
Commit 976185db authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Always shut down sidekiq before starting

parent 82f3446f
No related branches found
No related tags found
2 merge requests!6886DELETE THIS MERGE REQUEST,!4805user creation api extension: Added temp password feature from admin ui into users api call
Loading
Loading
@@ -5,7 +5,15 @@ namespace :sidekiq do
end
 
desc "GITLAB | Start sidekiq"
task :start do
task :start => :restart
desc 'GitLab | Restart sidekiq'
task :restart do
if File.exist?(pidfile)
puts 'Shutting down existing sidekiq process.'
Rake::Task['sidekiq:stop'].invoke
puts 'Starting new sidekiq process.'
end
system "nohup bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &"
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment