Skip to content

Commit

Permalink
Merge pull request #89 from ollym/patch-1
Browse files Browse the repository at this point in the history
expose pitchfork worker in env
  • Loading branch information
casperisfine authored Jan 11, 2024
2 parents fc30ba1 + e7c3330 commit 50f3e33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pitchfork/http_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ def process_client(client, worker, timeout_handler)

proc_name status: "requests: #{worker.requests_count}, processing: #{env["PATH_INFO"]}"

env["pitchfork.worker"] = worker
timeout_handler.rack_env = env
env["pitchfork.timeout"] = timeout_handler

Expand Down

0 comments on commit 50f3e33

Please sign in to comment.