Sha256: 2a0daa8351110aa39466fd7f8f3ecb30f2e083eda981d284816e7bb0df9eb78c

Contents?: true

Size: 572 Bytes

Versions: 10

Compression:

Stored size: 572 Bytes

Contents

  group 'delayed-jobs' do
    chain grace: 10.seconds

    start_timeout <%= options[:start_timeout] || "30.seconds" %>
    stop_timeout <%= options[:stop_timeout] || "40.seconds"  %>
    restart_timeout <%= options[:restart_timeout] || "30.seconds"  %>

    workers_count = '<%= fetch(:delayed_job_workers || 1) %>'.to_i

    (0 ... workers_count.to_i).each do |i|

    process "worker-#{i}" do
      pid_file "tmp/pids/delayed_job.#{i}.pid"
      start_command "<%= options[:start_command] %>"
      stop_command "<%= options[:stop_command] %>"
    end

    end

  end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
negroku-2.7.1 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.7.0 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.6.0 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.5.5 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.5.4 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.5.3 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.5.2 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.5.1 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.5.0 lib/negroku/capistrano/templates/eye/_delayed_job.erb
negroku-2.4.2 lib/negroku/templates/tasks/eye/_delayed_job.erb