Sha256: d53c322af7f7d7f7e30cb9df135c5ea4f4edc31170fe4fa8a8d97ab8d93f4312

Contents?: true

Size: 326 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
puma_worker_killer-1.0.0 test/fixtures/rolling_pre_term.ru