Skip to content

HTTP call to terminate k6 process #3583

@yorugac

Description

@yorugac

Feature Description

Currently there is a Stop test HTTP call which allows to stop the test itself but does not terminate the k6 process. This is easily noticeable when using --linger option: even after using Stop test HTTP call, k6 process must be terminated with an interrupt. (Ctrl + C, SIGTERM, etc.)

It would be good to have a possibility to terminate a running k6 process with HTTP API as well.

The absence of this call is esp. noticeable when trying to implement distributed test while native distribution mode is not available yet.
Probably a rare case, but it might also come in handy in non-distributed setups that are relying on HTTP API as well.

Suggested Solution (optional)

No response

Already existing or connected issues / PRs (optional)

This possibility was previously mentioned here:
#2804

Also, a related discussion is here:
#3217 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    evaluation neededproposal needs to be validated or tested before fully implementing it in k6feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions