diff options
Diffstat (limited to 'test/ruby/hooks/on_worker_shutdown.rb')
-rw-r--r-- | test/ruby/hooks/on_worker_shutdown.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/hooks/on_worker_shutdown.rb b/test/ruby/hooks/on_worker_shutdown.rb new file mode 100644 index 00000000..9ffaad93 --- /dev/null +++ b/test/ruby/hooks/on_worker_shutdown.rb @@ -0,0 +1,5 @@ +require 'securerandom' + +on_worker_shutdown do + File.write("./cookie_worker_shutdown.#{SecureRandom.hex}", "shutdown") +end |