Sha256: 4dbc34b15e2b21a6346540a0f3133c17e01a2bc471b41b2690cd661a6f9759a3

Contents?: true

Size: 751 Bytes

Versions: 18

Compression:

Stored size: 751 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_new_jobs do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq reject_new_jobs"
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
capistrano-unformatt-2.4 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-2.3 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-2.2 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-2.1 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-2.0 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.16 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.15 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.14.1 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.14 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.13 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.12 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.11 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.10 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.9 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.8 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.7 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.6 lib/capistrano/tasks/sidekiq.rake
capistrano-unformatt-1.5 lib/capistrano/tasks/sidekiq.rake