Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Plan for Restart strategies Like PM2 #8

Open
codemasteryofficial opened this issue Jul 10, 2024 · 4 comments
Open

Any Plan for Restart strategies Like PM2 #8

codemasteryofficial opened this issue Jul 10, 2024 · 4 comments
Labels
enhancement New feature or request planned Will be added in a later release

Comments

@codemasteryofficial
Copy link

Applications are automatically restarted on auto exit.
But option to configure extra restart strategies will be very helpful like:

  1. Restart app at a specified CRON time
  2. Restart app when files under a folder have changed
  3. Restart when app reach a memory threshold
  4. Restart when app reach a CPU threshold
@codemasteryofficial codemasteryofficial changed the title Any Plan for Restart strategies Like PM2 or may be better Any Plan for Restart strategies Like PM2 Jul 10, 2024
@theMackabu theMackabu added enhancement New feature or request planned Will be added in a later release labels Jul 11, 2024
@theMackabu
Copy link
Owner

theMackabu commented Jul 11, 2024

  • Restart app at a specified CRON time (v2.1.0 environment files)
  • Restart app when files under a folder have changed (—watch)
  • Restart when app reach a memory threshold (v2.0.0 planned)
  • Restart when app reach a CPU threshold (v2.0.0 planned)

@codemasteryofficial
Copy link
Author

Looking forward to the new version with this features

@titanism
Copy link

titanism commented Nov 7, 2024

Cron could be done via crontab or using Bree, similarly you could do the memory/cpu restarts using a Bree job as well, which itself could be run via cron. Node allows you to send SIGINT or SIGUSR2 for example to a process, so this feature isn't necessarily needed.

@theMackabu
Copy link
Owner

Cron could be done via crontab or using Bree, similarly you could do the memory/cpu restarts using a Bree job as well, which itself could be run via cron. Node allows you to send SIGINT or SIGUSR2 for example to a process, so this feature isn't necessarily needed.

I'm still considering adding it during winter break when I have a substantial period of time to add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned Will be added in a later release
Projects
None yet
Development

No branches or pull requests

3 participants