Set PLACK_RESTARTER_PID?

Open
#282 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
perl
Domain
backend

Research direction

Start by reading the linked commit discussion and the Restarter path used by plackup with the -r option. Determine whether a supervision environment variable should be set before the child handler runs, and define the warning or exception behavior expected from PSGI handlers such as Starman.

Written by the indexing model from the issue text.

Description

feature

https://github.com/throughnothing/Ubic-Service-Starman/commit/d7bfc037f174849def0ebe1794b2ca0fd74e8e9e#commitcomment-1238187

It's a known issue that some PSGI handlers such as Starman do not work as expected if you run it with plackup and -r option. Would it make sense to set some environment variable in Restarter before executing the child handler, so that the child can detect if it's running supervised, and gives warnings or throws exceptions if necessary?

Dominant language
Perl
Stars
494
Forks
206
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plack/Plack

All issues in plack/Plack

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.