Skip to content

Recurring issue with vizion, pm2 calling git status -s a ton of times #3403

Closed
@joshribakoff

Description

@joshribakoff

pm2 completely takes down my dev box (Vagrant) because running git status there is slow. I don't want my process manager to run git status, I just want it to launch my process that's it. I tried the --no-vizion flag & also putting vision: false in the JSON, both have no effect on v2.9.1 of pm2.

To replicate, insert an error into a JS file. Each time pm2 attempts to restart the process, it also calls git status -s and calls npm a bunch of times (visible in output of ps aux). Furthermore, replace git with a process that just sleeps to observe them stacking up. This will simulate Vagrant, which has a slow filesystem due to Virtual Box. In a fast environment, it will complete quickly & exit.

This seems to be a recurring issue, any way to get a permanent long term fix?

#924
#1074
#1735
#2867
#3105

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions