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

Create process but not start #5768

Closed
darkdiesel opened this issue Feb 18, 2024 · 8 comments
Closed

Create process but not start #5768

darkdiesel opened this issue Feb 18, 2024 · 8 comments

Comments

@darkdiesel
Copy link

Is it possible create process and not start it. Save list and then start when you need?

@Void-Monarch
Copy link

You can probably use a config file for it.

https://pm2.keymetrics.io/docs/usage/application-declaration/

image

@mudmixer-wes
Copy link

That doesn't work. I opened this issue quite some time ago and never got a response: #5711

@ultimate-tester
Copy link
Contributor

What is the exact use case of adding an app to the list to launch it later? Why don't you just do pm2 start ... later then?

@mudmixer-wes
Copy link

mudmixer-wes commented Feb 29, 2024

In our case, we use a CI/CD workflow that ships to production on merge. So we use Ecosystem files with cron schedules defined in the ecosystem file. Therefore, when we merge to production, deployment is automatic, but we do not want all previously defined jobs in our ecosystem to run just because we merged code to production and/or added/deleted a job with it's own cron schedule in the ecosystem file.

@ultimate-tester
Copy link
Contributor

I'm going through the issues to find mentions about not auto-starting a new process, which I now created a PR for:
#5780

@Unitech
Copy link
Owner

Unitech commented May 24, 2024

Feature landed

Update PM2 to 5.4.0

$ npm install [email protected] -g
$ pm2 update

@Unitech Unitech closed this as completed May 24, 2024
@mudmixer-wes
Copy link

Let's go!

@darkdiesel
Copy link
Author

Wow! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants