Only restart app if it ran without crashing for x time
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
As a way to avoid a buggy application from triggering 50 restarts in seconds, it should only trigger the autorestart if it managed to run the fist time without problem. For instance if it managed to run for 1 minute without crashing.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by locating PM2's autorestart handling and determine how a minimum healthy runtime should interact with crash-triggered restarts. Done means the behavior prevents rapid restart loops while preserving autorestart after a process has run for the configured period.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100