Know if first start or a restart
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
I have a function that creates a backup on start. I don't want it to potentially create many backups if some error happens that causes pm2 to restart the application dozens of times. I want to check if it's the first start, and then do the backup. Is that possible?
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 identified. First clarify how PM2 should distinguish an initial start from an application restart, then inspect the process lifecycle and define behavior for repeated restarts before implementation; done means the requested distinction is documented and verifiable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100