Sha256: 9c5544933dde30e19d4dd4c07d684575bc5e5046e9bab02730fcb82c8b4471a4

Contents?: true

Size: 461 Bytes

Versions: 14

Compression:

Stored size: 461 Bytes

Contents

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

    start_timeout 20.seconds
    stop_timeout 20.seconds
    restart_timeout 20.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

14 entries across 14 versions & 1 rubygems

Version Path
negroku-2.4.1 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.4.0 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.3.5 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.3.4 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.3.3 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.3.2 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.3.1 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.3.0 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.2.0 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.1.0 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.0.3 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.0.2 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.0.1 lib/negroku/templates/tasks/eye/_delayed_job.erb
negroku-2.0.0 lib/negroku/templates/tasks/eye/_delayed_job.erb