-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
pm2 trigger command hangs #3786
Comments
Are you using https://www.npmjs.com/package/pmx or https://www.npmjs.com/package/@pm2/io? Thanks |
Thanks for reply. I'm using Pmx |
Not sure how to check pmx version, I'm adding package |
action.js: var pmx = require('pmx')
pmx.action("test", (reply) => {
reply(`my answer`);
});
PMX version 1.6.7, PM2 3.0 I did the command 20 times it worked every time. How did you started your application? |
it's installed as pm2 module with |
It seems we have this behavior if (and only if) the called action doesn't exist. |
fix: #3786 fix issue when triggering an action that does not exist
fix: Unitech#3786 fix issue when triggering an action that does not exist
I sending custom command to pm2 process with
pm2 trigger myapp test
After issuing command pm2 answers:
Then it hangs.
This does not happen everytime, in most cases it works - but I can't find any pattern.
System: Ubuntu 16.04, 18.04
PM2: 2.6, 3.0.0
In my app I respond according to doc:
The text was updated successfully, but these errors were encountered: