Unitech / Unitech/pm2

Only restart app if it ran without crashing for x time

Open
#5,288 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.