Skip to content

[Feature]: gracefulshutdown with command instead of signal #36042

Closed
@kicktipp

Description

@kicktipp

🚀 Feature Request

gracefulShutdown should have an option for a command instead of a signal.

webserver {
   command: 'docker-compose -f ../compose.yml up',
   gracefulShutdown: {
     command: 'docker-compose -f ../compose.yml down'
  }

or detached:

webserver {
   command: 'docker-compose -f ../compose.yml up -d',
   gracefulShutdown: {
     command: 'docker-compose -f ../compose.yml down'
  }

Example

No response

Motivation

Docker has its own way to stop the containers. If you reuse it, it is more predictable what happens. I had the situation were two containers where stopped and the third one not because playwright ran against the timeout.

And you can let docker-compose detach with docker-compose up -d. then I guess there is no process to send any signal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions