Sha256: f09279f4b26696361a29567b7a23c83c14027a9b569a9f3b1f0cec6b4c929522

Contents?: true

Size: 743 Bytes

Versions: 4

Compression:

Stored size: 743 Bytes

Contents

namespace :deploy do
  namespace :sidekiq do
    desc "Starts sidekiq"
    task :start do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq start"
      end
    end

    desc "Stops sidekiq"
    task :stop do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq stop"
      end
    end

    desc "Restarts sidekiq"
    task :restart do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq restart"
      end
    end

    desc "Rejects new sidekiq jobs"
    task :reject_jobs do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq reject_jobs"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capistrano-unformatt-1.4 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.3 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.1 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.0 lib/capistrano/tasks/sidekiq.rake