Sha256: 887950edb6aecae4e1197523f2cc8eab438a9facb15a5f84a501d13bce45f9b0

Contents?: true

Size: 326 Bytes

Versions: 2

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

load File.expand_path('fixture_helper.rb', __dir__)

PumaWorkerKiller.config do |config|
  config.rolling_pre_term = ->(worker) { puts("About to terminate (rolling) worker: #{worker.pid}") }
end
PumaWorkerKiller.enable_rolling_restart(1, 0..5.0) # 1 second, short 1-5s splay.

run HelloWorldApp

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puma_worker_killer-0.3.1 test/fixtures/rolling_pre_term.ru
puma_worker_killer-0.3.0 test/fixtures/rolling_pre_term.ru