Skip to content

timeout does not clean up processes started by 'command' #4

@thernstig

Description

@thernstig

Set a command like:

module.exports = {
  command: 'npm run start',
  launchTimeout: 1000,
}

If the timeout occurs, you get this message:

Server has taken more than 1000ms to start.

The problem here is that jest-process-manager then never sends the proper signals to the processes started by the command, meaning they get hanging. As a comparison, pressing ctrl+c after the server has started properly cleans up the resources.

To Reproduce

Add the above config and a very short launchTimeout and notice how the started command never stops (check e.g. via the ps command).

Expected behavior

jest-process-manager should send the proper signals to launched command, even after a launchTimeout occured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions