Skip to content
Snippets Groups Projects
Commit 3f2b1d7f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

sidekiq rake task

parent 4d9c7eac
No related branches found
No related tags found
No related merge requests found
namespace :sidekiq do
desc "GITLAB | Stop sidekiq"
task :stop do
run "bundle exec sidekiqctl stop #{pidfile}"
end
desc "GITLAB | Start sidekiq"
task :start do
run "nohup bundle exec sidekiq -q runner,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &"
end
def pidfile
Rails.root.join("tmp", "pids", "sidekiq.pid")
end
end
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